cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject RE: patch to Enhance CIncludeTrasnformer to handle encodingofparameters
Date Tue, 02 Mar 2004 12:29:31 GMT
Marco Dubbeld wrote:
> Yep! The value element may contain UTF-8, with chinese 
> characters or other non ISO-8859 encoding characters. While 
> testing, the 
> this.startSerializedXMLRecording(XMLUtils.defaultSerializeToXM
> LFormat(true));
> will use ISO-8859 encoding (see the properties given back 
> from XMLUtils). However we should use a property set with the 
> encoding from the document we are transforming. Otherwise 
> this causes UTFDataFormatException for chinese UTF-8 for example.

So the best way would be to pass the encoding of the document
to the XMLUtils used for serializing. Is this possible?

> To use xml recording for a cinclude value element did not 
> make sense to me anyways, so I choose to use text recording 
> instead to prevent the problem. 
Yes, that's true, I'm wondering about that as well. But unfortunately
your change is incompatible - although I think it doesn't affect


View raw message