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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -