Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replacing spaces by %20

Status
Not open for further replies.

GMcFly

Programmer
Oct 2, 2002
48
0
0
NL
Hello everybody,

I'm currently working on a little program which creates a web page and uploads it. Links to files are generated on this page. The problem is that Netscape doesn't support spaces in file names. For example to make a link to the file "This is a test.xxx" I should write "This%20is%20a%20test.xxx". How can I replace the spaces with %20.

Thanks for your help!
 
Use the replace function in your code. Example:

lvTstStr = "a b c d e"
replace(lvTstStr, " ", "%20")

Result is: a%20b%20c%20d%20e

Regards...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top