This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xml:output encoding as iso-8859-1 always comes out as UTF-16
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xml:output encoding as iso-8859-1 always comes out as UTF-16
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 5 Mar 2001 12:19:36 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
If in MSXML3 you save the result of the transformation as a DOM object, and
then turn this into HTML using the DOM save method, then the serialization
is outside the control of the XSLT engine and therefore takes no account of
the xsl:output directive.
Mike Kay
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Neil Hunter
> Sent: 02 March 2001 13:49
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: [xsl] xml:output encoding as iso-8859-1 always comes out as
> UTF-16
>
>
> Hi,
>
> I am using MSXML3 with:
>
> <xsl:output method="html" encoding="iso-8859-1"/>
>
> but in the output I always get:
>
> <META http-equiv="Content-Type" content="text/html; charset=UTF-16">
>
> However, in Saxon I get what I am expecting:
>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
>
> I don't have much hair left to pull out.....
>
> Thanks,
>
> Neil.
>
> ICT, The Royal Society of Chemistry
> http://www.rsc.org
>
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list