Darn, I spoke too soon on the other thread claiming that LibXML 1.32
fixed my problem. Further experimentation shows that it still behaves
the same way when you specify anything other than UTF-8 as the output in
the <xsl:output> tag.

--d

Daisuke Maki wrote:
> Hi,
> 
> I just got started with XSP, and I'm having some issues with the
> encoding. I'm trying to do this:
> 
> ===
> 
> <?xml version="1.0" encoding="EUC-JP"?>
> <?xml-stylesheet href="NULL" type="application/x-xsp"?>
> 
> <!--
>     this is a custom xsl that's written in EUC-JP, and
>     <xsl:output encoding> is also set to EUC-JP
> -->
> <?xml-stylesheet href="main.xsl" type="text/xsl"?>
> 
> <document title="Some_Japanese_Characters">
>    <xsp:logic>
>       ...
>    </xsp:logic>
> </document>
> 
> ===
> 
> When I place Japanese characters ( EUC-JP ) in the document node, LibXML
> (iconv?) complains:
> 
>    output conversion failed due to conv error
>    Bytes:  ..........
>    xmlOutputBufferWrite: encode error
> 
> This seems to have something to do with the resulting document from the
> first XSP transformation, as no error is produced if the second
> stylesheet is disabled. And I know that the second stylesheet works by
> itself without any errors.
> 
> Is there anyway to fix this?
> 
> Thanks,
> --d
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



-- 
<?xml version="1.0">
<signature who="Maki, Daisuke">
   <attrib name="Perl,XML,mod_perl,PostgreSQL" />
   <quote who="Rikli, Steve">
      So you want me to download the whole CPAN for you or what?
   </quote>
</signature>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to