Thanks.
The problem is the default character encoding (System prop
file.encoding) on Linux was UTF8 and on WIn32 was cp1252. As I'm using
org.apache.commons.configuration.XMLConfiguration to read a config
file. From which, the © was not properly recognized on Linux.
Using -Dfile.encoding = cp1252 when launching JBoss solves the problem.
Thanks for the heads up on StringWriter. I use ByteArrayOutputStream so
often for things, that take OutputStream that its just habit.
I'll look into the b20050512_streaming branch.
Thanks.
On May 26, 2005, at 6:54 AM, Jochen Wiedmann wrote:
String Larson wrote:
return baos.toString();
What character encoding does the machine have? Is ISO-8859-1 the
default
locale? Otherwise, you would most possibly need a
toString("ISO-8859-1")
here.
Besides, does the generated string contain an XML declaration with
encoding='ISO-8859-1'?
If not, try to create a small example program, which demonstrates the
problem. Besides, is there any reason for using a ByteArrayOutputStream
as the transformer target? As you are going to create a string anyways,
that's an unnecessary performance loss, compared to a StringWriter.
And, finally, if you are transferring DOM documents, you might take a
look at the b20050512_streaming branch, which supports DOM nodes as
request parameters and results.
Jochen