|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-08-08 09:49 UTC] ab@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ab
[2016-08-08 09:49 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 06:00:01 2025 UTC |
Description: ------------ If I try to create a directory with UTF-8 characters the result is not as expected. Expected folder name: Яндекс Actual result: Ð¯Ð½Ð´ÐµÐºÑ Even scandir doesn't understand UTF-8 folder- and filenames in PHP 7. How to handle such files with PHP 7? PHP version: 7.1.0-dev (Windows) Test script: --------------- <?php mkdir(__DIR__ . '/Яндекс'); print_r(scandir(__DIR__)); Expected result: ---------------- Array ( [0] => . [1] => .. [2] => Яндекс Actual result: -------------- Array ( [0] => . [1] => .. [2] => ð»ð¢ð┤ðÁð║Ðü