editing a url that contains '%'

Started by RAK, December 23, 2013, 10:02:33 PM

Previous topic - Next topic

RAK

I have been trying to edit a url that may contain a percent character. %20, %3, %2 are the ones I am working with. I tried a few things and no luck - string functions err and I cannot replace them so far.

thanks

hdsouza

Not sure what you mean by editing a URL.
If u are trying to open the url, that try placing the URL into a variable and then write code around the variable

Deana

Quote from: RAK on December 23, 2013, 10:02:33 PM
I have been trying to edit a url that may contain a percent character. %20, %3, %2 are the ones I am working with. I tried a few things and no luck - string functions err and I cannot replace them so far.

thanks

Take a look at the WinInet Extender function iUrlDecode. It takes a string in URL encoded format and converts it to plain text.

Code (winbatch) Select
AddExtender("WWINT44I.DLL",0,"WWINT64I.DLL")
sEncoded = 'Burgers%%26Fries%%20at%%2050%%%%20off!!!??!!!'  ;Escaped using double percent signs (for WinBatch)
sPlain = iUrlDecode (sEncoded)
Message ('iUrlDecode', 'Encoded string: ': sEncoded: @CRLF: 'Plain string:': sPlain)
Deana F.
Technical Support
Wilson WindowWare Inc.

RAK

YES! this is what I was looking for.. I knew it was there somewhere but could not remember it..

thanks!