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

Re: Encoding iso-8859-1 always return UTF-16

Subject: Re: Encoding iso-8859-1 always return UTF-16
From: David_N_Bertoni@xxxxxxxxx
Date: Wed, 4 Jul 2001 11:52:22 -0700
xml encoding iso 8859 1
> I'm using MSXML 3.0 and XSLISAPI 2.1 Filter on iis.
>
> I have a .pasp file to generate the xml and I'm using xls to convert to
html.
> The PI instruction on xsl is
>
> <?xml version="1.0" encoding="iso-8859-1"?>

The XML declaration is not a PI, even though it looks like one.  Since the
stylesheet is just another XML document, it applies only to the stylesheet
itself -- It has no impact on the result of the transformation.

> but always the output in html is
>
> <META http-equiv="Content-Type" content="text/html; charset=UTF-16">
>
> how do i solve this problem?

See the XSLT 1.0 recommendation for information about xsl:output:

   http://www.w3.org/TR/xslt#output

I believe you'll also need to write the output to an IStream, or use the
command line msxsl utility.  Otherwise, the Microsoft processor use UTF-16
as the output encoding.

> Tanks
> Arthur Costa Lima
> CPM - Brazil

You're welcome...

Dave


 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.