Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WD21] URLEncode (no replies)

$
0
0
Hello,

To send messages through an API, I need to use URLEncode function. Seems that function is not encoding the special character '&'.

My code:

sResult is string
sResult = URLEncode (EDT_Input)
Info(sResult)


For input : Nice & beatiful,
I get : Nice%20&%20beatiful

When I try @ [www.urlencoder.org]
I get Nice%20%26%20Worthy
for the same input string. (see %26 in between %20)

Would like to know whether URLEncode function should encode ('&') to %26 or not ? What should we do to correct this problem.

Happiness Always
BKR Sivaprakash

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>