Re: [xsl] Encoding iso-8859-1 always return UTF-16

Subject: Re: [xsl] Encoding iso-8859-1 always return UTF-16
From: David_N_Bertoni@xxxxxxxxx
Date: Wed, 4 Jul 2001 11:52:22 -0700
> 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
> 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:

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...


 XSL-List info and archive:

Current Thread