I am using uploadify and the file name retrieved from $_FILES["fileData"]["name"] on server side is in utf8. It may contain chinese or japanese characters. After the following codes run,
$tempFileWithPath = $_FILES['Filedata']['tmp_name'];
$destFile = $_FILES['Filedata']['name'];
$destFileWithPath=myUtility::getFileRepositoryPath().'/'.$destFile;
move_uploaded_file($tempFileWithPath,$destFileWithPath);
For those files using chinese or japanese file name, I used filezilla ftp client (which supports utf8 file name) and browser the folder and found that they all become ?????. Of course, other files using english-only file name do not have this problem.
I am using php 5.2.9 and the server is linux on a shared hosting.
Is it true that all file-related functions in PHP have problems supporting utf8? Or my problem is related to other issues?