Wrong charset convert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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.
Example:
Upload a file by using simple html upload form, which is encoded in utf-8:
<!-- this is only part of whole code --!>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<form enctype="multipart/form-data" action="" method="POST">
<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" />
</form>
</body>
</html>
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: http://something.com/sloĹľ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
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]