Question

exemple de Wikipedia de XHTML-MP :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN"
  "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <title>Hello</title>
  </head>
  <body>
    <p>Hello <a href="http://example.org/">world</a>.</p>
  </body>
</html>

validation W3C avec l'erreur Entrée n'est pas bonne UTF-8, indiquer le codage ! Octets: 0xA9 0x20 0x32 0x30

Même si vous ajoutez <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> et dites validateur lui est UTF8, il donne cette erreur.

Si le DOCTYPE XHTML-MP est supprimé, il fonctionne très bien. Quel est le problème?

Était-ce utile?

La solution

Le problème est avec la DTD externe. Si vous modifiez le DOCTYPE à cela, il valide:

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

Autres conseils

http://mobiready.com/launch.jsp?locale=en_EN il valide bien. Weird

Aussi, vous n'avez pas besoin d'utiliser 1.1 pour utiliser JavaScript. Bien qu'il ne validerait pas sur le vérificateur de W3,

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

fonctionne très bien avec presque tous les téléphones pris en charge JavaScript.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top