ID: 35721
Updated by: [EMAIL PROTECTED]
Reported By: omidmr at gmail dot com
-Status: Open
+Status: Wont fix
Bug Type: *Directory/Filesystem functions
Operating System: Windows XP
PHP Version: 5.1.1
New Comment:
You have to wait for PHP6, Unicode support will be added only in this
version.
Previous Comments:
------------------------------------------------------------------------
[2005-12-17 16:07:50] omidmr at gmail dot com
Description:
------------
When i upload a file with unicode filename (in my case, it is in
Persian) PHP convert each character to an underscore sign (_).
for example when i upload a file, named "عÙÛ.php", it will convert
to "___.php"
the written program works fine with PHP 5.0.5.
Regards,
omid
Reproduce code:
---------------
the very very simple code that i tested is:
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="file"><br>
<input type="submit" name="submit" value="submit">
</form>
<?php
echo '<pre>';
print_r($_FILES['file']);
echo '</pre>';
?>
Expected result:
----------------
Array
(
[name] => Ø³ÙØ§Ù
.php
[type] => application/octet-stream
[tmp_name] => D:\php\tmp\php4D.tmp
[error] => 0
[size] => 0
)
Actual result:
--------------
Array
(
[name] => ____.php
[type] => application/octet-stream
[tmp_name] => D:\php\tmp\php4D.tmp
[error] => 0
[size] => 0
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35721&edit=1