Hi @Yuvraj Patil
Per my test, I try to retrieve the ServerRelativeUrl by File.ServerRelativeUrl and get the following result return
The result turns out to be decoded URL and encoded URL should be like following
%2Fsites%2Fxiexin%2FCoding%2F%25%25%25%23%23%2FNew+Text+Document+%2812%29.txt
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.