#46990 [Opn]: Passing UTF8 strings to filesystem functions produce wrong filenames

From: Date: Fri, 02 Jan 2009 08:06:40 +0000
Subject: #46990 [Opn]: Passing UTF8 strings to filesystem functions produce wrong filenames
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132503@lists.php.net to get a copy of this message
ID: 46990 User updated by: alex dot bazan at concatel dot com Reported By: alex dot bazan at concatel dot com Status: Open Bug Type: *Directory/Filesystem functions Operating System: Windows XP PHP Version: 5.2.8 New Comment: The UTF string did not get saved correctly in the bug report. It was a japanese string. Previous Comments: ------------------------------------------------------------------------ [2009-01-02 08:03:37] alex dot bazan at concatel dot com Description: ------------ Under Windows, when I use fpoen() or mkdir() with a UTF8 encoded string, the file or directory name is not converted to the filesystem encoding and thus the file or directory is created with a wrong file name. Reproduce code: --------------- <?php mkdir('&#26085;&#26412;&#35486;'); ?> Expected result: ---------------- Directory &#26085;&#26412;&#35486; should be created Actual result: -------------- Directory 日本語 is created ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46990&edit=1

« previous php.bugs (#132503) next »