httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] Wrong charset convert
Date Tue, 30 Jun 2009 22:02:22 GMT
I have installed Apache 2.2.11 with PHP 5.2.8 on Windows XP SP3. 
Windows are using Windows-1250 charset (Czech localization). I want 
to install MediaWiki software which uses utf-8 charset.

When I upload a file with non-english characters in its name, then 
its name is saved in utf-8 format. When I try to open such file in 
web browser it sends 404 not found status.


Upload a file by using simple html upload form, which is encoded in 

<!-- this is only part of whole code --!>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

<form enctype="multipart/form-data" action="uploader.php" method=
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><
br />
<input type="submit" value="Upload File" />


File named for example "složka.png" is saved to hard drive with name
"sloĹľka.png" in Windows-1250 encoding. If that upload form was 
encoded with charset=Windows-1250 then it'll be right named "složka.
png", but charset must be utf-8.

So suppose that we have server with uploaded file: http://something.
com/složka.png. On linux it is working fine. But on Windows server 
you must use address like that:Ĺľka.png and
that's not good for MediaWiki.

I don't know if it's understandably enough, I need set up Apache to 
ignore windows-1250 charset and use original utf-8 for decoding URL.
httpd.conf is original (with php installation).

Thanks for help
Jiri Eichler

View raw message