Hi,
Output other than utf-8 is generated thanks to iconv library, which is present
by default in most (Unix) systems. When using the html output method, the 0.43
adds a corresponding META tag to the HEAD section of resulting document, so that
browsers display it correctly.
In other words, using <xsl:output method="html"/ encoding="your_encoding"> is
enough, you do NOT have to include a literal META tag in the same stylesheet
(for 0.43 or later). Such a inclusion results in a duplicate META declaration,
where the second one is ignored by browsers.
The html output method is selected by default if the document element of the
result tree is <html>, so <xsl:output encoding="your_encoding"> should be
sufficient to encode and display your HTML correctly. It works for me with
iso-8859-2.
Petr
Christopher Rivera wrote:
> Hi,
>
> I've encountered the same problem when I initially started to use Sablotron.
> The work-around I used was a bit different. Instead of using the
> charset=UTF-8, I put into my XSLT stylesheet the following line:
>
> <xsl:output media-type="text/html" encoding="iso-8859-1"/>
>
> This corrects the issue with 'Â' characters appearing in place of the
> none-breaking space.
>
> FYI: using Perl version 5.005_03, and Sablotron 0.42 with XML-Sablotron Perl
> module.
>
> <name>Christopher Rivera</name>
> <email href="[EMAIL PROTECTED]"/>
> <email href="[EMAIL PROTECTED]"/>
> <position>Webmaster</position>
> <company url="http://www.onenest.com/">oneNest.com, Inc.</company>
>
> -----------------------------------------------------------------------
--
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com