I am calling a rest service and have to send an HTML string. If I dont URL_ENCODE(the string) Aware throws an error when running the service. If I DO URL_ENCODE then all of the spaces turn into + and when my JAVASCRIPT rest server runs a decodeURI it leaves the + alone. Is this a problem with the way Aware Encodes or the way Javascript decodes?
Thanks
Bruce
URL_ENCODE changes spaces to + instead of %20
-
- Posts: 7526
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: URL_ENCODE changes spaces to + instead of %20
There is some confusion there as to how spaces should be encoded.
According to application/x-www-form-urlencoded spaces should be encoded ass +
You can probably use the REPLACE_STRING function to convert + to %20
According to application/x-www-form-urlencoded spaces should be encoded ass +
You can probably use the REPLACE_STRING function to convert + to %20
Aware IM Support Team