--TEST--Bug #64506 PHP can not read or write file correctly if file name have special char like š --SKIPIF-- --FILE-- --EXPECTF-- resource(%d) of type (stream) int(25) bool(true) string(25) "writing to an mb filename" Active code page: 65001 getting basename of %s\š.txt string(6) "š.txt" bool(true) string(%d) "%s\š.txt" Active code page: %d bool(true)