What charset is SWFUpload using for the filenames? And is there a way to change it? Because I get wierd letters when uploading a file with chars like: ë Á and stuff.
I'm havving the same problem.
Swfupload uses utf-8.
There is no possibility to convert the response to other charsets with php.
I think we will have to modify the .js 's.
How to send the file name in other charset encodings? Which lines of Swfupload code i should modify?
Are you using the Flash 8 or Flash 9 version (I'm not asking which version of flash you have, but which swfupload SWF file you are using).
If you use $_FILES['Filedata']['name'] you gill get the file name.
Be sure to check that you arent using strtolower o strupper over file name if it contains accents and special chars.
If you are using other string functions probably, there it will be.
Swfupload uses utf-8. But just dont care on your page's encoding.
Finally, you have to use utf8_decode($filename_var);
And there it will be your filename with special chars...
$file = $_FILES['Filedata']['name']; $file_name = utf8_decode($file);
Change the charset of Swupload filenames response
I'm havving the same problem.
Swfupload uses utf-8.
There is no possibility to convert the response to other charsets with php.
I think we will have to modify the .js 's.
How to send the file name in other charset encodings?
Which lines of Swfupload code i should modify?
Which version?
Are you using the Flash 8 or Flash 9 version (I'm not asking which version of flash you have, but which swfupload SWF file you are using).
charset
If you use $_FILES['Filedata']['name'] you gill get the file name.
Be sure to check that you arent using strtolower o strupper over file name if it contains accents and special chars.
If you are using other string functions probably, there it will be.
Swfupload uses utf-8. But just dont care on your page's encoding.
Finally, you have to use utf8_decode($filename_var);
And there it will be your filename with special chars...
$file = $_FILES['Filedata']['name'];
$file_name = utf8_decode($file);