Problème UTF-8
3 messages • Page 1 sur 1
Consultez la formation au référencement naturel Google de WebRankInfo / Ranking Metrics
-

bizgratuit - WRInaute impliqué

- Messages: 251
- Inscription: Ven Mai 25, 2007 12:58
Problème UTF-8
Bonjour,
je viens de lancer une petite analyse de mon site pour vérifier son état avec le site validator.w3.ord et voilà ce le compte rendu
Qu'est ce que je dois faire exactement?
je viens de lancer une petite analyse de mon site pour vérifier son état avec le site validator.w3.ord et voilà ce le compte rendu
The validator has found the following problem(s) prior to validation, which should be addressed in priority:
No Character Encoding Found! Falling back to UTF-8.
I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents.
The sources I tried to find encoding information include:
The HTTP Content-Type field.
The XML Declaration.
The HTML "META" element.
And I even tried to autodetect it using the algorithm defined in Appendix F of the XML 1.0 Recommendation.
Since none of these sources yielded any usable information, I will not be able to reliably validate this document. Sorry. Please make sure you specify the character encoding in use.
Specifying a character encoding is typically done by the web server configuration, by the scripts that put together pages, and inside the document itself. IANA maintains the list of official names for character encodings (called charsets in this context). You can choose from a number of encodings, though we recommend UTF-8 as particularly useful.
The W3C I18N Activity has collected a few tips on how to do this.
To quickly check whether the document would validate after addressing the missing character encoding information, you can use the "Encoding" form control earlier in the page to force an encoding override to take effect. "iso-8859-1" (Western Europe and North America) and "utf-8" (Universal, but not commonly used in legacy documents) are common encodings if you are not sure what encoding to choose.
Sorry, I am unable to validate this document because on line 229 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.
The error was: utf8 "\xE9" does not map to Unicode
Qu'est ce que je dois faire exactement?
Re: Problème UTF-8
Le message est pourtant clair.bizgratuit a écrit:Qu'est ce que je dois faire exactement?
Tu n'as pas indiqué de "character encoding" sur ta page. Le validateur choisi donc lui-même l'UTF-8 mais ne peut pas analyser ta page car il ne comprend pas un caractère ligne 229 ...
Donc tu indiques l'encodage de tes caractères ("charset"), et si tu choisis UTF-8, tous tes fichiers doivent être codés en UTF-8...
Pour définir le charset:
- Code: Tout sélectionner
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Ou via header
- Code: Tout sélectionner
Content-Type: text/html; charset=UTF-8
-

bizgratuit - WRInaute impliqué

- Messages: 251
- Inscription: Ven Mai 25, 2007 12:58
Merci,
Maintenant je peux corriger mes erreurs .
Maintenant je peux corriger mes erreurs .
3 messages • Page 1 sur 1
Formation recommandée sur ce thème :
Formation Référencement naturel Google : apprenez une méthode efficace pour optimiser à fond le référencement naturel dans Google de façon durable... Formation animée par Olivier Duffez et Fabien Facériès, experts en référencement naturel.
Tous les détails sur le site Ranking Metrics : programme, prix, dates et lieux, inscription en ligne.
Lectures recommandées sur ce thème :
- La calculatrice de Google
- Google indexe le Flash
- Tiret ou underscore ? Enfin la réponse !
- Google affiche des liens vers des plans de villes
- Google News : trucs et astuces
- Google tente d'expliquer le Google Bombing 'Failure'
- Google traque les colis UPS ou FedEx
- Google Images cherche dans l'actualité
- Google ajoute la Navigation par nom dans sa Toolbar
- WebRankExpert, le service professionnel de WebRankInfo
- UTF 8 Probleme d'encoding?
- Problème encoding UTF-8 [Résolu]
- get_meta_tags et UTF-8
- Google et UTF-8 ???
- file_get_contents + UTF-8 + CR/LF
- Encodage UTF-8
- Magpierss et UTF-8
- URL en UTF 8
- adsense pour rss + utf-8
- PHP-MySQL et UTF-8
- [Résolu] UTF-8 et données POST / GET
- UTF 8 et caractéres accentués doublé
- encodage html et utf 8
- UTF-8 ou ISO 8859-1 ?
- UTF-8 : Apostrophe invivible?...
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités


le forum