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

RE: encoding issues

Subject: RE: encoding issues
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 3 Jul 2002 15:19:36 +0100
ie autoselect encoding
> Why does msxml4 (when using ie's autoselect) default to 
> unicode without the line:
> 
> <xsl:output method="xml" encoding="utf-8"/>
> 
> Whereas with it, it defaults to Western European (windows) 
> (iso-8859-1 I
> think) - isnt that the wrong way around?
> 
> Why does saxon always default to Western European regardless 
> of what I specifiy?
> 
> The reason I ask is that Im using &#160; at various places, 
> which is part of unicode but not Western European...

Just to summarize my understanding of the responses to this thread:

* Saxon outputs the XML in utf-8 as requested.
* Your perception that Saxon outputs in "Western European" is based on
asking Internet Explorer what it thinks the encoding is.
* Internet Explorer is confused because the output is actually being
treated as HTML rather than as XML, which means that the XML encoding
declaration is ignored. (And the HTML encoding declaration, of course,
is not there because you asked for method="xml").

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 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.