Re: [xsl] mysterious  character inserted into coverted document

Subject: Re: [xsl] mysterious  character inserted into coverted document
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 17 Apr 2002 08:41:12 +0100
> but I keep getting these
> mysterious  characters inserted into my document.

It's not an A character it's half a character: you are outputting the
result in the default utf8 encoding. this is a multi-byte encoding, but
you are incorrectly viewing the file in a system assuming latin-1 or a
windows code page that is a fixed 1 byte encoding. So multi byte
characters appear as essentially arbitrary collections of
characters. Due to an accident in the way the encodings work, some of
these will appear as an accented A followed by the intended character,
but in other cases you just see the wrong thing.

Every XML pplication can read utf8 so best is to just ignore it and view
the file in an XML application. But you may be able to add
encoding="iso-88591" to xsl:output to request output in latin1.

David
(this is a faq)

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread