Re: "Specifying Character Encoding" FAILS

Hi D Lauwers.

Le 22 juil. 2007 à 21:53, Sono a écrit :
> 	<html lang="fr">

Here you specified the language used in your document.
	French Language

> 	<meta http-equiv="content-type" content="text/html; charset=UTF-8">

Here you specified the encoding used in your document.
	UTF-8

> 	<p>L'élève va à l'école et ceci est écrit en Français!</p>

Here some actual French text.

1. Do you see question marks when you look at the document locally on  
your computer with the browser? (open file… with the browser)
    If the document is fine locally, it means you have the right  
encoding.
    If not, your document is maybe written with another encoding.

2. Now when you put your document online, it has been written with  
one encoding, you have to be careful that the server sends the right  
information with your document.
    If you do not have control on the server configuration but have  
access to PHP, you can fix the HTTP headers for this file.

http://www.w3.org/International/techniques/server-charset#setting
Specifically
http://www.w3.org/International/O-HTTP-charset
header('Content-type: text/html; charset=utf-8');


-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***

Received on Tuesday, 24 July 2007 06:29:37 UTC