Hyperlink with spaces problem

I am putting hotspots(hyperlinks) to files on the network in the lotus notes i send around.  This does not work on all computers. The link launches IE and some of the PC's get the "page cannot be displayed" message.  The path has spaces in it and the address bar subsitues %20 for the spaces in the path.  Is there a way or setting to get IE to stop putting the %20 in the path.  I think this is the problem.
We are running Lotus notes 4.6.6 and IE 5.5

Any help would be great
Wardy
WardyAsked:
Who is Participating?
 
brunoConnect With a Mentor Commented:
IE will automatically put %20 in where there are spaces.

Netscape will NOT and will not be able to view the page.


The way to fix this?  Anything that will EVER be viewed thru a web browser should NOT have spaces in the names.  Naming convention of the web is to use underscores "_" instead of spaces in names.


this file.html

would be

this_file.html



BRUNO
0
 
AjninCommented:
The %20 is how browsers interpret a space in a address. Are you sure the pcs in question can see the path the link is pointing to. To test try to browse to the path your pointing to with Windows Explorer.
Also if the link you give looks like X:\filepath\htmlfile.htm some IE versions don't know how to interpret this. Instead try file:///X:\filepath\htmfile.htm

Regards
0
 
mouattsCommented:
As I recall IE and Netscape don't interpret %20 or (+) as spaces when accessing files. So as bruno suggests never use spaces in files names.

(Bill Gates please note that allowing spaces in file names was the most cretinious thing you ever did.)

Steve
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
WardyAuthor Commented:
you are exactly right.  The spaces in the path cause problems(not only for this app) and have to go.
Thanks
0
 
WardyAuthor Commented:
Thanks for the answer.  I have tried that with mixed success.
0
 
brunoCommented:
>>I have tried that with mixed success.


only mixed success?
0
 
AjninCommented:
On our intranet we have no problems with spaces.

But whatever works works.
0
 
mouattsCommented:
Ajnin on an Intranet you are accessing files via HTTP and the browsers generally handle the spaces. However wardy is accesing them as files (so far as I can tell) and the browsers do not behave in the same way.

Regardless of that a space within a URL is an illegal character and unless encoded using either %20 or + you can not be certain that all browsers, including future versions, will work.

Steve
0
 
Asta CuCommented:
It looks like you've been helped here, Wardy. Good news.
":0) Asta
0
 
Asta CuCommented:
Please repond to the experts here who have helped you.
Thanks,
Asta
0
 
brunoCommented:
Wardy,

I am curious why you feel this was only worth a B?

If you do not respond here I will ask a mod to review the question to see if they also feel the answer was only worth a B.



BRUNO
0
 
brunoCommented:
Wardy, you still have not responded here.   I will give you one more chance before asking a mod for review.


BRUNO
0
 
MoondancerCommented:
Thanks, Asta, for pointing this out.  No comments as to why less than an A grade was given, despite requests for information.  Additionally, Asker said:
From: Wardy  Date: 06/10/2002 09:52AM PST  
you are exactly right.  The spaces in the path cause problems(not only for this app) and have to go.
Thanks  
----------------------
Grade corrected.

Please see this link for grading guidance, and please take a moment in the future to add comments any time you choose a grade less than an A so we can all understand our shortfalls (if there are any).  This not only helps the participants in the question thread, but also those in the future who may access this question from our PAQ.

http://www.experts-exchange.com/new_users/Q_20310437.html

Thanks,
Moondancer - EE Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.