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.
Thanks
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
EncodeUrl("(test")
=> (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 :
https://www.outsystems.com/forums/discussion/36156/guide-consume-rest-api-with-form-url-encoded-request/