php mkdir() in hebrew creates gibrish folder

后端 未结 3 1558
孤城傲影
孤城傲影 2021-01-21 17:52

I am trying to make a dir using a php in english and it\'s working. But when i try in hebrew, it creats the folder in gibrish like so: ׳”׳•׳¨׳“׳”| ׳׳©׳—׳§ ׳©׳•׳׳˜

how ca

3条回答
  •  甜味超标
    2021-01-21 18:31

    Use mb_convert_encoding to convert the name (string) from UTF-8 to ISO-8859-8. I've tested it with PHP 7 and Windows 10.

提交回复
热议问题