[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Output: XML to XML scrambling unicode characters

Subject: Re: Output: XML to XML scrambling unicode characters
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 4 Mar 2002 18:26:11 GMT
eacute utf 8
 For example: I know that the "& eacute;"
 in utf-8 should be "& #233;"

No, that isn't the utf-8 encoding for e acute it is an XMl numeric
character reference. the XML is written in ascii (and so in utf8 or
latin1). However to write an eacute in utf8 takes two bytes "Ã ©"
Just as to write it in latin1 takes 1 byte é.

> When I
> changed my encoding to iso-8859-1 as you suggested, the letter
> appears in my editor as a single character é.

yes typically an XSL system will output characters that are in your
specified coding as character data, and output any other characters as
XML character references. Note in the text output method it can not do
this so can only generate an error.

If you use utf8 then _every_ character is available as character data
and the system need never use the &# notataion. (That's what the U is
for in UTF)

David

_____________________________________________________________________
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.