I have a file name "Água.jpg" (brazilian file). When i upload with swfupload the file name become a other file name with "bizzare" caractere. I know this a encoding problem.
I use the "SWFUpload 0.8.3 Revision 6.2 ".
Is there some solution to this encoding problem (if there are) in the last swfupload version ?
Is there is a solution with the "SWFUpload 0.8.3 Revision 6.2 " ?
Not tested
We have not tested SWFUpload extended characters or unicode or any other character sets. I don't think there has been any change in that regard for the latest versions.
I'll open an issue ticket and we'll look in to it.
Tested
I tested a file with Á in the name in Windows XP in FF3, IE7 and IE6 and all uploaded without problem.
Could this be an issue on the server side? Maybe your scripting language is not configured correctly or does not handle extended characters correctly.
Can you upload the file to your upload.php (or whatever it is) using a normal HTML upload form?
Hello bruno !I'm french,
Hello bruno !
You can solve your problem by using :
$new_name_file = utf8_decode($new_name_file);
But it's not a good idea to store a file with special char.
To correct this, you can use :
$new_name_file = (strtr($new_name_file, "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËéèêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ", "AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn"));
before store your file ...