cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Heiden <>
Subject Re: Cocoon, JX Temaplte and UTF-8
Date Wed, 27 Feb 2008 20:21:09 GMT

Wednesday, February 27, 2008, 5:20:28 PM, you wrote:

MHA> I want to pass the content of that Model (what comes out of the write())
MHA> to the pipeline and display it in a template, jx.xml, using <jx:out
MHA> value="#{result-list}" xmlize="true"
MHA> xmlns:jx=""/>.

MHA> "org.xml.sax.SAXParseException: Invalid byte 2 of 3-byte UTF-8 sequence"
MHA> when using ByteArrayOutPutStream.toString()

MHA> It's vital that the UTF-8 encoding is kept, and Java String doesn't
MHA> support that.

AFAIK Java Strings are UTF-8 too. If you deal with different
character sets, you've got to convert the data when constructing or
outputting a string. Java assumes the platform standard encoding, if
you don't specify another one.

Did you try:




To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message