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.

> 	<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  
    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.

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:16:20 UTC