View Single Post
  #6   Report Post  
Posted to comp.lang.java.programmer,microsoft.public.excel.programming
Bura Tino Bura Tino is offline
external usenet poster
 
Posts: 57
Default How to URL-ize a string

"Robin Hammond" wrote in message ...
Bura,

The spaces should be fine in a Get or Post statement, but you have to watch
out for ampersands and question marks, which precede each parameter
statement. The way I do this is to replace these characters with something
obscure and then Post to an asp page that replaces the obscure characters
with the originals before it does anything else.


Thanks. But wouldn't it be better to convert them to, say, %5C and let
the server do the reverse conversions?
HTH,

Robin Hammond
www.enhanceddatasystems.com

"Bura Tino" wrote in message
...
Hi,

Sorry for the strange crosspost - I need to solve the same problem in both
environments. I need to pass a string via GET to a script as the value of

a
parameter. My string can be arbtrary and so will have spaces, ampersands,
percents, etc. So I need to replace the funny charcters with their %XX
representations. Can I find a ready routine to do this and if not, is

there
a list of all substitutions that I need to make?

Thanks!

Bura