cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Hieber" <>
Subject Output encoding fixes
Date Tue, 04 Apr 2000 13:55:03 GMT

I just downloaded Cocoon 1.7.3-dev from the CVS, compiled and installed.
Stefano has fixed two bugs today related to output encoding. For me
something still doesn't work out right. But I can't even claim to understand
the problem fully so please bear with me.

Let me give an example:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="umlaut-page-result.xsl" type="text/xsl"?>
<?cocoon-process type="xslt"?>

 <content>This page contains German Umlaut chars: äöüÄÖÜ</content>

<?xml version="1.0"?>

<xsl:stylesheet version="1.0"

  <xsl:template match="page">
     <xsl:value-of select="content"/>


Cocoon processes the XSLT-Transformation and gives back the following
<?xml version="1.0" encoding="UTF-8"?>
<result>This page contains German Umlaut chars: äöüÄÖÜ</result>

<!-- This page was served in 0 milliseconds by Cocoon 1.7.3-dev -->

What bugs me is that the encoding of the result is "UTF-8", not "iso-8859-1"
like it should (IMO).
The consequence is that Internet Explorer chokes on the Umlaut characters
and won't display the XML tree but shows an error message instead.

Nothing changes even if I put the encoding attribute in the XML declaration
of the stylesheet or inside the "cocoon-format" processing instruction.

BTW, is it "iso-8859-1" or "ISO-8859-1"? Or maybe both is correct?

Richard Hieber    
Online Programmierer

WWL Internet AG           
Südwestpark 60        Tel: ++49/ 911/ 688 667 302
D-90449 Nürnberg      Fax: ++49/ 911/ 688 667  11

View raw message