File name bug for "V2.1.0 simple demo" [solved]

Hello,

Firstly, sorry for my bad english.

I have downloaded swfupload "V2.1.0 simple demo" and I try to upload a picture with the following name : "éssai.jpg".

I have modifiy "upload.php" like this to store the uploaded file :

<?php
// Work-around for setting up a session because Flash Player doesn't send the cookies
if (isset($_POST["PHPSESSID"]))
{
session_id($_POST["PHPSESSID"]);
}
session_start();

if (!isset($_FILES["Filedata"]) || !is_uploaded_file($_FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0)
{
echo "There was a problem with the upload";
exit(0);
}
else
{
$new_name_file = "./".$_FILES['Filedata']['name'];
move_uploaded_file($_FILES['Filedata']['tmp_name'], $new_name_file);

echo "Flash requires that we output something or it won't fire the uploadSuccess event";
}
?>

The problem is that my picture is stored with the following name : "éssai.jpg" instead of "éssai.jpg".

Can you help me ?

Thanks in advance.

The problem was solved by

The problem was solved by adding :

$new_name_file = utf8_decode($new_name_file);

But it's not a good idea to store file with special char Eye-wink