php mkdir() in hebrew creates gibrish folder

后端 未结 3 1583
孤城傲影
孤城傲影 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:18

    Basically you cannot unless your OS's encoding system supports these characters. Hebrew also must be part of the extended UTF-8 package right?

    For example unde Windows the default codepage is iso-8859-1 which doesn't have hebrew.

    I think switching it to UTF-8 might work as now new Windows version allow all Unicode characters in file names, but its not really recommended

提交回复
热议问题