Forum Moderators: phranque

Message Too Old, No Replies

Get problem of URL with special german characters

         

wktecht

8:44 pm on Dec 11, 2011 (gmt 0)

10+ Year Member



I have an URL of the form "http://localhost/path/file.html"

The file name contains special national german characters.
I URLEncode the file name in my Java app using UTF-8.

When I try to read the URL in browsers I get web server
errors 404/500...

Is there a misconfiguration of the Apache Server on my
Windows 7 system ?

Thanks for any help/hint/solution.

lucy24

11:13 pm on Dec 11, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You're not giving an awful lot of information. Do you mean that you're sending a non-ASCII file name out into the world and expecting it to be disencoded correctly by all browsers, and all servers in transit?

I realize this isn't answering your question, but personally I wouldn't do it. And that's speaking as someone who spends a lot of time with non-Roman scripts. You can use anything you like for your page titles, so long as you've remembered to declare the charset before the title header. But it really is safer to keep all links-- including page-internal fragments-- in plain ASCII. a-z, 0-9, lowline, hyphen. In the case of German, you're just talking about ae, oe, ue and possibly ss. That shouldn't bother your readers.

wktecht

5:09 pm on Dec 12, 2011 (gmt 0)

10+ Year Member



Do you mean that you're sending a non-ASCII file name out into the world and expecting it to be disencoded correctly by all browsers, and all servers in transit?


No. My problem is with the LOCALHOST - means that I try to get the html file via the Apache web server on my machine.
The html file is not in the www but on my local machine in the DocumentRoot directory.
If the html file name contains only ASCII chars the browser shows the content correctly - no read error.