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

RE: non-breaking whitespace

Subject: RE: non-breaking whitespace
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Wed, 29 Oct 2003 12:32:47 -0500
nonbreaking white space encoding
[Saverio Perugini]

> > After you correct the missing ";" that
> > jarno pointed out, and you view the file in a browser, if 
> you still get
> > the same result you need to specify that the output file be produced
> > with the same encoding that the browser is set for, or you 
> have to make
> > sure that the right encoding declaration (a <meta> element 
> in HTML) is
> > being placed into the file.
> 
> What do these two options entail?
> 
 You can change the encoding of the output of the stylesheet by adding

<xsl:output method='html' encoding='iso-8859-1'/>

(or use whatever encoding the browser is set for).

This will probably be the easiest thing to do.  By default, an xml file
is supposed to be in utf-8 (or possibly in utf-16 if the document starts
with the right "byte order mark"), and if the viewer is trying to use
single-byte encodings, you will see those extra, odd characters whenever
the character in utf-8 has more than one byte.

Cheers,

Tom P

 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.