阅读背景:

PHP:带有Unicode文件名的file_put_contents()

来源:互联网 

I want to save some data in files with file names which would have unicode characters in it (like chinese, cyrillic, arabic, ...) with PHP's file_put_contents() functions. I don't want to encode them separately with something like urlencode() because no human would be able to read the file names if they contained only non-latin chars. The 3 biggest OSes Windows, MacOS / OS X and Linux support UTF-8 or UTF-16 chars in file names and can display them without problems but it seems that it's not that easy as just calling something like that:I want to save some data in files with file nam




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: