encode - sharepoint online rest api java encoding issue -
i'm trying save file in sharepoint online , contains % in it's name. i'm using java url encoder encode it.
urlencoder.encode(url, "utf-8");
this rest api i'm using store file in sharepoint.
post https://(root_url)/_api/web/getfolderbyserverrelativeurl('(url/folder)')/files/add(url='(file name)',overwrite=false) http/1.1
but instead of saving %
, file name saved in encoded format.(i.e.) %25
.
if file name test%.xlsx
, in sharepoint saved test%25.xlsx
this issue arises %
, other special characters saving fine.
is rest api defect? solutions??
Comments
Post a Comment