#35721 [Opn->WFx]: uploaded unicode filenames converts to underscore

From: Date: Sat, 17 Dec 2005 15:24:49 +0000
Subject: #35721 [Opn->WFx]: uploaded unicode filenames converts to underscore
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90594@lists.php.net to get a copy of this message
ID: 35721 Updated by: tony2001@php.net 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

« previous php.bugs (#90594) next »