W3C home > Mailing lists > Public > www-html@w3.org > July 1999

Re: Charsets/Encodings

From: Bert Bos <Bert.Bos@sophia.inria.fr>
Date: Mon, 19 Jul 1999 11:28:16 -0400 (EDT)
To: Nicolas Lesbats <nlesbats@etu.utc.fr>
Cc: www-html@w3.org, www-style@w3.org
Message-ID: <14227.16116.236628.777975@www43.inria.fr>
Nicolas Lesbats writes:
 > Hi,
 > 
 > I have some problems with characters encoding.
 > 
 > Suppose I have a tag : 
 > 
 > <meta name="content-type" content="text/html; charset=utf-8">
 > 
 > Can I write directly (that's to say without using entities) any
 > iso-8859-1 character ? IE accepts it (maybe because it doesn't recognize
 > the preceding tag), but Netscape no (it only displays characters between
 > the beginning and 128).

The characters 128-255 either have to be encoded as UTF-8 (i.e., using
two bytes for each character), or they have to be entities.

If you are not using a real UTF-8 editor, you are probably not
generating correct UTF-8. In that case Netscape is correct in ignoring
the accented characters. Maybe IE has some clever error-recovery?

 > 
 > Suppose now I have the same tag with iso-8859-1.
 > 
 > Can I generate non-iso-8859-1 characters through a CSS stylesheet (which
 > recognizes utf-8 characters) ?

Are you referring to the ':before' and ':after' pseudo-elements of
CSS? In theory yes, but I think those pseudo-elements don't yet work
in the current browser versions.



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Tuesday, 27 July 1999 05:21:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:39 GMT