Re: [xsl] RE: Smart Quote Encoding

Subject: Re: [xsl] RE: Smart Quote Encoding
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Sep 2007 16:15:59 +0100
> I would like to log the content of the e-mails exactly. 
> It sounds like that's simply not possible in XML, at least to the
> extent that "text-only" can include characters not allowed in XML.

The situation in XML is just the same in XMl as in email, the receiver
needs to know the encoding the sender used. In your case, the email to
which I am replying has 

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit

in its head which means that you (or an email proxy between you and me)
send the file in ASCII, with all non ascii characters suitable encoded.

You can encode all the characters that you want in XML, but you either
have to encode them in utf8 (the default) or specify whhich encoding you
hav eused.

> I inserted the ISO 8859-1 encoding declaration myself.  Apparently, Saxon
> 6.3 doesn't support windows-1252 encoding. 

The decoding is done by the XML parser, so saxon itself has no say in
that. Saxon (whether 6 or 8) can use a variety of parsers and which
encodings they know about out of the box will depend  on which parser
you are using and potentially on which version of java you have.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

Current Thread