W3C home > Mailing lists > Public > www-math@w3.org > July 2003

Re: xsl transformation and special characters

From: David Carlisle <davidc@nag.co.uk>
Date: Fri, 4 Jul 2003 12:52:51 +0100
Message-Id: <200307041152.MAA24721@penguin.nag.co.uk>
To: mortena@mip.sdu.dk
CC: www-math@w3.org

when you see an accented A before a character in the latin 1 set this is almost
always a sign that you are reading the document with a system expecting
latin 1 (ISO 8859-1) encoding but the document is encoded in UTF-8.

There may be several reasons for this.

1) your server is sending the document with an HTTP header that
   incorrectly asserts the document is latin 1 encoded, so overidin
   the utf8 encoding specified in the file

2)  your browser is set to override the specified encoding and forcing
    latin 1 (look for example in view/encoding in IE, it should be set
    to auto-select).

3) any number of programs along the way has messed up the encoding

> As I submit the form with the Textarea,

aha, the specification on what encodings submitted data are supposed to
use are "vague"..

It is all supposed to work as it is, but you might want to try adding
to every xsl:output instruction that you see in pmathml.xsl and related

But it is better really to make sure your browser and server are set up
to understand UTF-8. Note that according to the XML specification UTF8
and UTF16 are the _only_ encodings that must be supported, there is no
requirement for an XML system to understand latin 1 or ascii, although
most do of course. So it is far better to make sure your browser
understands utf8 than to make the stylesheets use iso-8859-1 which
will in principle produce documents that may not be portable to all XML


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
Received on Friday, 4 July 2003 07:53:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:34 UTC