Ho un form con 2 campi input text il cui valore può essere variabile, quando questo ha una stringa in cui è presente un carattere con accento viene visualizzato come se non fosse impostato correttamente l'ENCODING. Di seguito il codicecodice HTML:<!DOCTYPE HTML PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/DTD/wml20.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" dir="ltr"> <head> <meta charset="ISO-8859-15"> <meta http-equiv="content-encoding" content="ISO-8859-15" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" /> </head> <body> <form action="map.php#response" method="post" accept-charset="ISO-8859-15" onsubmit="setDirections(this.from.value, this.to.value, this.locale.value);"> INIZIO<br/> <input type="text" size="30" id="fromAddress" name="from" value="Via trinità delle monache"/> FINE<br> <input type="text" size="30" id="toAddress" name="to" value="Via Giosuè Carducci"/> <input name="submit" type="submit" value=" Vedi Percorso "/> </form> </body> </html>
I files interessati sono tutti e 2 ISO-8859-15 creati con notepad++. Vorrei impedire che vengano visualizzati caratteri inaspettati in sostituzione delle vocali con accento.

Rispondi quotando
