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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -