Re: xsl transformation and special characters

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


> 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
encoding="iso-8859-1"
to every xsl:output instruction that you see in pmathml.xsl and related
stylesheets.

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


David

________________________________________________________________________
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:
http://www.star.net.uk
________________________________________________________________________

Received on Friday, 4 July 2003 07:53:09 UTC