Re: Use character entities to represent non-ASCII characters

Paul Kinnucan via xslt <[email protected]> Mon, 22 Aug 2022 17:36:03 +0000
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <MN2PR05MB7038A4432F93A19513A72559B4719@MN2PR05MB7038.namprd05.prod.outlook.com>
Hi Nick,

That worked.

Thanks so much.

Regards,

Paul

-----Original Message-----
From: Nick Wellnhofer <[email protected]> 
Sent: Monday, August 22, 2022 12:13 PM
To: Paul Kinnucan <[email protected]>; The Gnome XSLT library mailing-list <[email protected]>
Subject: Re: [xslt] Use character entities to represent non-ASCII characters

On 22/08/2022 17:59, Paul Kinnucan wrote:
> Is there a was with libxslt to override the output encoding specified 
> by the stylesheet?

It should work to poke into the xsltStylesheet struct after parsing:

     xmlFree(style->encoding);
     style->encoding = xmlStrdup((xmlChar *) "HTML");

Nic