I have PHP installed on a CentOS server, and I wanna transfer files from this (with PHP FTP) to a Windows FTP server that is running IIS. Now my problem, when the file name have non-latin characters it changes file names to something like 'تست.3gp' (its name in CentOS is تست.3gp) I 've searched many times but no solutions. How can I fix this?
I think Windows use CP-1252 (Windows-1252) as charset and CentOS use UTF-8 as charset. But converting this with iconv()
and mb_convert_encoding()
didn't work.