This is the sketeton of my HTMP page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:v="urn:schemas-
microsoft-com:vml" lang="fr" xml:lang="fr">
<head>
...
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
...
<script src="jquery/jquery-1.3.1.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery/jquery-ui-
personalized-1.6rc6.js"></script>
<script src="jquery/jquery.form.js" type="text/javascript"></script>
...

$('#form1').ajaxSubmit(
    {
        type: 'POST',
        url: 'test.php',
        beforeSubmit: function(f,j,o) {

            var queryString = $.param(f);
            alert('About to submit: \n\n' + queryString);
        },
        success: function(msg) {
            alert(msg);
        },
        error: function(requete,iderror) {
            alert(iderror + " " + requete);
        }
    });

    return false;
}



<form enctype='multipart/form-data' action='' id='form1' >
    <table >
        <tr><td>Nom: </td><td><input type='text' size='30' id='nom'
name='nom' /></td></tr>
        <tr><td>Prénom: </td><td><input type="text" size="30"
id="prenom" name="prenom" /></td></tr>
        <tr><td>Photo: </td><td><input type="file" size="40"
id="photo" name="photo" /></td></tr>
    </table>
</form>

If I enter a name with french accents then the queryString display
wrong chars.
How to "pass" correct strings to my test.php module ?

Reply via email to