View Single Post
  #2   Report Post  
Posted to comp.lang.java.programmer,microsoft.public.excel.programming
Robin Hammond[_2_] Robin Hammond[_2_] is offline
external usenet poster
 
Posts: 575
Default How to URL-ize a string

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.

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