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

Re: XSL > XSL trans. and Characher Encoding

Subject: Re: XSL > XSL trans. and Characher Encoding
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 16 Oct 2001 23:33:08 +0100
space charachter i xml


> please explain to me why I do not get a nbsp charachter when my XSL has 
> &#160 ?

you do get the non breaking space character. But characters are logical
entities, and files are just streams of bytes, it is th efile encoding
that matches the two. In a latin-1 encoded file nbsp is a single byte
with value 160. In a utf-8 encoded file that single character is encoded
as two bytes. If you look at the file in a system that understands the
file encoding you will see a (non breaking) space, if you look at the
file in a system set up for the wrong encoding of course the bytes in
the file are displayed as the wrong characters. The bytes that denote
nbsp happen to appear as an accented A and a space, but essentialy it is
just random junk caused by your system incorrectly decoding the byte
stream.  

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.