Bug #64506 [Opn->Dup]: PHP can not read or write file correctly if file name have special char like Å¡

From: Date: Mon, 25 Mar 2013 02:17:06 +0000
Subject: Bug #64506 [Opn->Dup]: PHP can not read or write file correctly if file name have special char like Å¡
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178048@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64506&edit=1 ID: 64506 Updated by: pajoye@php.net Reported by: vibbow at hotmail dot com Summary: PHP can not read or write file correctly if file name have special char like š -Status: Open +Status: Duplicate Type: Bug Package: Filesystem function related Operating System: Windows 7 PHP Version: 5.4.13 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2013-03-25 02:16:58] pajoye@php.net duplicate of bugs about unicode API support for file operations. Temporary solution is to either choose the right encoding (windows encoding), mbstring supports conversions for all windows encoding. ------------------------------------------------------------------------ [2013-03-25 02:07:50] vibbow at hotmail dot com Description: ------------ System envirement: Windows 8 x64 Simplified Chinese PHP 5.4.13 nts (Non debug version, download from windows.php.net) 1. This problem only happened on Windows (I tried on linux, it works fine) 2. If I want to save a file with special character in file name (For example, I want to save file to "š.txt"), the file name will actually become "拧.txt" 3. If in my folder, I have a file named š.txt, when I use scandir to list all the files in thsi folder, this file will list as "?.txt" Test script: --------------- <?php file_put_contents('š.txt', 'test'); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64506&edit=1

« previous php.bugs (#178048) next »