...<form method="post" action="<?php echo $url; ?>"> <input type="text" name="var" value="<?php echo $var; ?>" /> <input type="text" name="var2" value="<?php echo $var2; ?>" /> <input type="text" name="var3" value="<?php echo $var3; ?>" /> </form>
<form method="post" action="<?php echo htmlentities($url, ENT_QUOTES, 'UTF-8'); ?>">
<input type="text" name="var" value="<?php echo htmlentities($var, ENT_QUOTES, 'UTF-8'); ?>" />
<input type="text" name="var2" value="<?php echo htmlentities($var2, ENT_QUOTES, 'UTF-8'); ?>" />
<input type="text" name="var3" value="<?php echo htmlentities($var3, ENT_QUOTES, 'UTF-8'); ?>" />
</form>
Ce serait mieux comme ça Changer UTF-8 par l'encodage