On Nov 25, 2005, at 22:46, Craig McDaniel wrote:

Hi,

<snip />
The original data file has no XML declaration. The stylesheet has one,
but does not have an encoding attribute. The &#x00a0; entities are in
the XSL, by the way.

OK, no explicit encoding attribute makes both UTF-8 encoded...

I almost feel like I am debugging this thing blind. I do have the
source code, but it is too spread out to post here. It might be worth
pointing out that the XSL is applied to the XML data and sent to a
ByteArrayOutputStream. The byte array is then stored and later passed
into the FOP driver as a ByteArrayInputStream.

Still no problem here, as ByteArray*Streams are encoding-agnostic. A Byte is a Byte...

Likewise, the output of the driver is written to a byte array and
finally, it gets sent to the browser with
response.getOutputStream().write(bytes).

Your culprit is very close by here, I suspect, although OutputStreams don't have an encoding... If it were an OutputStreamWriter using the default platform Charset, then the bug would definitely be here. (Perhaps somewhere, a Writer is wrapped around the OutputStream?)


HTH!

Cheers,

Andreas



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

Reply via email to