httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ejir...@seznam.cz
Subject Re: [users@httpd] Wrong charset convert
Date Wed, 01 Jul 2009 09:04:34 GMT
This is that problem: <a href="http://sgo.happyforever.com/test.php">http://sgo.happyforever.com/test.php</a><br>Try
it please, thanks.<br>
<br>
------------ Původní zpráva ------------<br>
<b>Od:</b>  &lt;ejirkae@seznam.cz&gt;<br>
<b>Předmět:</b> [users@httpd] Wrong charset convert<br>
<b>Datum:</b> 01.7.2009 00:03:06<br>
---------------------------------------------<br>
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.<br><br>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.<br><br>Example:<br><br>Upload
a file by using simple html upload form, which is encoded in utf-8:<br><br>&lt;!--
this is only part of whole code --!&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;meta
http-equiv="Content-Type" content="text/html;<span style="font-weight: bold;">charset=utf-8</span>"
/&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>&lt;form
enctype="multipart/form-data" action="uploader.php" method="POST"&gt;<br>&lt;input
type="hidden" name="MAX_FILE_SIZE" value="100000" /&gt;<br>Choose a file to upload:
&lt;input name="uploadedfile" type="file" /&gt;&lt;br /&gt;<br>&lt;input
type="submit" value="Upload File" /&gt;<br><br>&lt;/form&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br>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.<br><br>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.<br><br>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).<br><br>Thanks for help<br>Jiri Eichler<br>

							 
								
							 
							 <div></div>

Mime
View raw message