We are trying get the files from Document Library where the endpoint which I am using is
_api/web/GetFileByServerRelativePath(decodedUrl='%2fsites%2fJshareDev%2fTestLibrary%2fcan't.docx')
Here my file name is "can't.docx". If i have any file having (') in path the Api returns an error 400 Bad Request.
I have tried also tried UTF encoding to file name which encoded ' Inverted Comma to %27 like can%27t.docx Also tried to escape the inverted comma like can't.docx nut no luck same error.
I am using java jshare library for getting the data but here something wrong with Api url standards for normal file its works normally.
Don't know what I am missing here.