xsl-list
[Top] [All Lists]

Re: [xsl] RE: Smart Quote Encoding

2007-09-13 08:16:25
 


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;
        charset="us-ascii"
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.

David

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>