Linking to files with umlauted characters

J

jb

Given a file named äundöundü.txt on a server...

None of the following loads the file in Firefox or IE:

<a href="äundöundü.txt">äundöundü.txt</a>
<a href="äundöundü.txt">äundöundü.txt</a>
<a href="äundöundü.txt">äundöundü.txt</a>

Firefox loads the file if äundöundü.txt is typed directly into the URL
bar but the name is shown as %E4und%F6und%FC.txt.

<a href="äund&#xF6undü.txt">äundöundü.txt</a>
....doesn't seem to work either.

Am I missing something?
 
E

Edwin van der Vaart

jb said:
Given a file named äundöundü.txt on a server...

None of the following loads the file in Firefox or IE:

<a href="äundöundü.txt">äundöundü.txt</a>
<a href="äundöundü.txt">äundöundü.txt</a>
<a href="äundöundü.txt">äundöundü.txt</a>

Firefox loads the file if äundöundü.txt is typed directly into the URL
bar but the name is shown as %E4und%F6und%FC.txt.

<a href="äund&#xF6undü.txt">äundöundü.txt</a>
...doesn't seem to work either.

Am I missing something?
Try <a href="%E4und%F6und%FC.txt">äundöundü.txt</a>
 
E

Edwin van der Vaart

Edwin said:
Try <a href="%E4und%F6und%FC.txt">äundöundü.txt</a>
Ooops.
Instead of <a href="%E4und%F6und%FC.txt">äundöundü.txt</a>, it must be
<a href="%E4und%F6und%FC.txt">äundöundü.txt</a>
 
D

David Dorward

Edwin said:
Edwin van der Vaart wrote:
Instead of <a href="%E4und%F6und%FC.txt">äundöundü.txt</a>, it must be
<a href="%E4und%F6und%FC.txt">äundöundü.txt</a>

No need to use numberic character references for unicode characters - just
save the document in a character encoding that supports the characters (lke
UTF-8), and make sure the server includes that information in the HTTP
response header.
 
E

Edwin van der Vaart

David said:
No need to use numberic character references for unicode characters - just
save the document in a character encoding that supports the characters (lke
UTF-8), and make sure the server includes that information in the HTTP
response header.
You mean save the document as *.txt with e.g. vi, gedit or notepad.
Upload to the webhost server and whalla it works great.
 
D

David Dorward

You mean save the document as *.txt with e.g. vi, gedit or notepad.

I mean what I said (except for the typo of "numeric"). For a start we're
talking about an HTML document, not a plain text file, and you have to
ensure that you editor uses a suitable character encoding.
Upload to the webhost server and whalla it works great.

So long as the server tells the browser what character encoding was used.
 
E

Edwin van der Vaart

David said:
Edwin van der Vaart wrote:




I mean what I said (except for the typo of "numeric"). For a start we're
talking about an HTML document, not a plain text file, and you have to
ensure that you editor uses a suitable character encoding.
Sorry about that. I thought you was referring to the text file.
Thanx for clearing that up.
So long as the server tells the browser what character encoding was used.
You're right.
 
J

jb

<a href="%E4und%F6und%FC.txt">äundöundü.txt</a>

Curiously, this does not work in IE6, but does in Firefox.

For IE6, it needs to be:
<a href="äundöundü.txt">äundöundü.txt</a>
 
J

jb

Curiously, this does not work in IE6, but does in Firefox.

For IE6, it needs to be:
<a href="äundöundü.txt">äundöundü.txt</a>

Actually, it was a charset problem. iso-8859-1 works for both; I was
using utf-8.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top