When saving files, the system seems to only accept ANSI Chinese characters, but iconv (); mb_convert_encoding (); it seems that no direct conversion is allowed .. It is said that the default file name in WINDOWS is ANSI, but I set UTF8 on the page. When I select File Upload, there is no Garbled text. When I save the file, it seems that the system can only accept ANSI Chinese characters,
Iconv ();
Mb_convert_encoding ();
It seems that none of them can be directly converted ..
It is said that the default file name in WINDOWS is ANSI, but I set UTF8 on the page. No garbled characters appear when I select File Upload.
Reply content:
When saving files, the system seems to only accept ANSI Chinese characters,
Iconv ();
Mb_convert_encoding ();
It seems that none of them can be directly converted ..
It is said that the default file name in WINDOWS is ANSI, but I set UTF8 on the page. No garbled characters appear when I select File Upload.
$ Name = iconv ('utf-8', 'gb2312', $ file ['name']); // recode the file name using the Iconv Function
Http://www.jb51.net/article/42660.htm
Have you tried it?