Encode URL (UTF-8)  Which contain Special characters
Application Type
Service Studio Version
11.14.14 (Build 59923)

Hi Team,

I am using encodeUrl() to encode the text values and pass it to the API , 

but if the special character is there it is failing ,  ! ^ ( ) + { } [ ] : " /     these all needs to be allowed 

how can I achieve encode URL (UTF-8) 

please assist.


EncodeURL method is used to encode the special characters itself so these characters should not be a problem. 

Also as given on this URL all special characters have equivalent UTF-8 values : https://www.w3schools.com/tags/ref_urlencode.asp

could you please share the example string in which you are facing issue, so can check with specific case. Also you can check by putting the text on above w3schools URL for encoding.

Hi Thanks for the reply , 

if I try in the link which you have provided it is working good , 

but in outsystems if I use EncodeURL(" ^ ( ) + { } [ ] : " /ASDF") function , it is giving API bad request 

and also for space instead of %20 it is taking it as +

Please assist

so its the issue of API, need to be check at api end. Could you please provide API details to check.

Hi , 

we are getting it as bad request bcz the encoded value is not proper from the EncodeUrL() function


 => (test

This is the output of w3school, Is outSystems encodeURL method return same string.

Although I checked below on w3schools (https://www.w3schools.com/tags/ref_urlencode.asp )  and its working fine :

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.