Ok i am doing a post to the internet to cgi I have the inet control and i would like to change chr. like ! , #, ( ....
to the internet chr like # = %23 please help
Printable View
Ok i am doing a post to the internet to cgi I have the inet control and i would like to change chr. like ! , #, ( ....
to the internet chr like # = %23 please help
You need to offer up a more thorough explanation of just what you are trying to accomplish. Perhaps then, someone can give you the assistace you are looking for.
Detail and pseudo really help.
An algorithm that translates ascii characters into a url-friendly token. Is this what you're looking for? If so, I think this may work
2 strings needed:
sOrigString
sURLTokenString
for each char in sOrigString
if the current char in sOrigString = a control char then
append a '%' and the ascii value of the char to sURLTokenString
else
append the current char to sURLTokenString
end if
That should work if I understood the question :-)