|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70551 UTF-8 filename issue
Submitted: 2015-09-22 15:39 UTC Modified: 2016-08-08 09:49 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: revx at gmx dot de Assigned: ab (profile)
Status: Closed Package: Unicode Engine related
PHP Version: master-Git-2015-09-22 (snap) OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: revx at gmx dot de
New email:
PHP Version: OS:


 [2015-09-22 15:39 UTC] revx at gmx dot de
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:
mkdir(__DIR__ . '/Яндекс'); 

Expected result:
    [0] => .
    [1] => ..
    [2] => Яндекс

Actual result:
    [0] => .
    [1] => ..
    [2] => ð»ð¢ð┤ðÁð║Ðü


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-08 09:49 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2016-08-08 09:49 UTC]
Fixed in PHP 7.1. Please test it carefully and report issues in a new ticket.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 05:01:29 2024 UTC