I have a problem with the jquery form plugin.

I submit a form (to test.php) in which there are text fields and one
file field + enctype='multipart/form-data'.
The html page has a meta which defines the charset to iso 8859-1

The test.php module begin with header('content-type:text/
html;charset=iso-8859-1');
I read the text fields like this: $nom = htmlspecialchars(addslashes
($_POST['nom']));
I read the upload file like this: $tmp_name = $_FILES['photo']
['tmp_name'];

Here is the problem:
If my text fields contain accents and the file field is empty then
$name is correct.
If my text fields contain accents and the file field is NOT empty then
$name is NOT correct.
 example: "René" gives "Ren?"

I don't understand the impact of the $_FILES on $_POST.
Does the jquery plugin changes the charset ?


Reply via email to