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

special characters in local url

Status
Not open for further replies.

shootsie

Programmer
Apr 12, 2001
43
US
Ok, I have a file I need to open on a local drive in Internet Explorer with a special character in the filename. i.e. (no pun intended):

c:/what%20file.html

The file actually has the %20 in the filename.

When IE tries to open it, it interprets the filename as:

c:/what%2520file.html

%25 being the special character for %

It works fine over a network when the path starts with http://

Any ideas? Fixes?

Thanks,
Shootsie
 
%20 indicates a space

I think the % sign is a non-usable character on the internet. Why don't you just change the file name. To whatpercent20file.html. Type the word out instead of using the character. People will still read it the way it should sound.

Hope this helps!
colorado.gif

"Quest for the Cup - 2002!"
"Onto the 2nd round!"

 
The %20 is in the filename because it is being generated by code. It takes the filename from the command line, and the command line automatically inserts the %20 into the filename since, as you mentioned, the %20 indicates a space.

The really strange thing about this problem is that as long as the filename occurs in an http:// address, it works fine and knows that the %20 is a space and not a literal '%20'.

Thanks,
Shootsie
 
helo

which version of IE r u using on which OS?
try using IE 5.5 or higher. it will solve ur problem.

another solution is given below:
if u don't want to change the filename then try installing Personal Web Server PWS (if u r using Win95/98) or IIS (if u r using Win NT/2000/XP). then use the web server for local files too.

ComputerJin.
 
I'm using IE 6.

The problem with installing a web server is that it won't work for everyone trying to view a file on their local system.

Thanks,
Shootsie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top