This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Encoding iso-8859-1 always return UTF-16
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Encoding iso-8859-1 always return UTF-16
- From: David_N_Bertoni at lotus dot com
- Date: Wed, 4 Jul 2001 11:52:22 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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