I'm having a problem wtih encoding on an OS 390. I can read documents okay but writing them is not going well. It looks like I'm having problems using XMLWriter. I want the files to be written in ASCII (cp1252) and with a "UTF-8" encoding header. I know I can read documents that are in this format.

When I write documents using XMLWriter however, they are being written in EBCDIC (native encoding for the 390, of course) with a "UTF-8" header. This is a bad combination- the file will never parse again this way. I am passing in a FileOutputStream to XMLWriter which appears to use OutputFormat's default encoding which is hard coded to "UTF-8".

I'm using dom4j 1.4 and IBM's JDK 1.3.1 on the host. I'm open to ideas if anybody has a better suggestion for how to write files on the host and have them be valid and capable of being re-read.

Thanks,
Brian



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to