While uploading a file with pure chinese font move_uploaded_file()
function changes the name into some symbol while storing into image folder. I am using joomla website. Can anybody help?
local files must be saved using the system encoding: in short if your system uses a chinese encoding, you have to convert the filename to that encoding
if your php files are utf-8, and you are using windows, you must use, for example
$destfilename = iconv("UTF-8", "GBK", "您好.txt");
move_uploaded_file($temp, $destfilename);
and you must use the same treatment with function such mkdir, rename, etc