在我的 PHP 脚本中,我使用md5_file()函数为每个分析的文件返回一个 md5 密钥。
但是,当文件名中包含重音符号时,md5_file()函数无法读取该文件。
//filename: Flash_Conqu\xc3\xaate_Galactic.txt\nWarning: md5_file(.....): failed to open stream: No such file or directory in\nRun Code Online (Sandbox Code Playgroud)\n\n我尝试使用该iconv()功能或utf8_encode()函数,但两者都完全没有结果。
有没有办法在不修改文件名的情况下解决这个问题?
\nphp ×1