You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ősz Ferenc <os...@clphx.btk.ppke.hu> on 2004/06/29 11:30:59 UTC

[users@httpd] UTF-8 URLs problem

I've several files on my Apache (1.3.31) with hungarian accentuated
letters. Browsers (IE, Opera default setting) send URL-s with UTF-8
encoding, and the web-server cannot get these files. Logs ("élet.doc"):

"Encode international web-address. in UTF-8" enabled (Opera)
127.0.0.1 - - [29/Jun/2004:10:50:09 +0200] "GET /%C3%A9let.doc HTTP/1.1"
404 283

UTF-8 disabled:
127.0.0.1 - - [29/Jun/2004:10:49:50 +0200] "GET /%E9let.doc HTTP/1.1" 200
0

I cannot notice so many users to change the default setting in their
browsers...

I've tested Apache 1.3.27-1.3.31 and 2.0.49 (SuSE and Debian distribs,
with en_US/hu_HU.UTF-8 locales), but the results are the same.

According to
http://www.w3.org/TR/html4/appendix/notes.html#non-ascii-chars
the UTF-8 URL encoding, as I see, is standard. Why not use it Apache?

Regards,
Ferenc Osz



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] UTF-8 URLs problem

Posted by Nick Kew <ni...@webthing.com>.
On Tue, 29 Jun 2004, [iso-8859-2] ?sz Ferenc wrote:

> I've several files on my Apache (1.3.31) with hungarian accentuated
> letters. Browsers (IE, Opera default setting) send URL-s with UTF-8
> encoding, and the web-server cannot get these files. Logs ("élet.doc"):

Browsers need you to tell them the encoding of your documents.
Use addcharset/family directives.

So long as you tell browsers the charset the encoding of your documents,
what they do with it is up to them.  If you get problems from browser
bugs, the workaround is probably to avoid using characters that give
rise to the problems.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org