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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbi in HTML - problems with space 1

Status
Not open for further replies.
Use %20 when you have spaces in your URLs...

Code:
[URL=http://camping/camp/Camp%20-%20consumos.htm)][/URL]
[URL=http://camping/camp/Inspecção%20Técnica.htm)][/URL]

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Or better yet, don't use spaces in URLs (page names, image names, script names, etc.).

Lee
 
Thanks a lot it works
Can you help me with special caracteres like ç ã ?

Thank again

António
 
Here is one way to do it...

Take the following code and place the URL that you want to make into a safe URL (I will use your first example) in between the " " marks:
Code:
javascript:alert(escape("camping/camp/Inspecção Técnica.htm"));
Now paste that into the location bar of any browser. It will alert you the "safe" version that you can now use in your page.

In the example above, you should get an alert showing:
Code:
camping/camp/Inspec%E7%E3o%20T%E9cnica.htm

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top