W3C home > Mailing lists > Public > public-evangelist@w3.org > July 2007

Re: "Specifying Character Encoding" FAILS

From: Karl Dubost <karl@w3.org>
Date: Tue, 24 Jul 2007 15:29:27 +0900
Message-Id: <5A9BE66F-D6E2-49FE-A99F-BFBFE351382B@w3.org>
Cc: public-evangelist@w3.org
To: Sono <info@livingtantra.be>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 15 July 2011 00:13:24 GMT