mrglavas 2004/03/29 12:02:08 Modified: java/src/org/apache/xml/serialize DOMSerializerImpl.java Log: Fixing Bug #27995:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27995 Report output encoding as UTF-16 when a node is written with LSSerializer.writeToString. Patch thanks to Naela Nissar. Revision Changes Path 1.20 +3 -2 xml-xerces/java/src/org/apache/xml/serialize/DOMSerializerImpl.java Index: DOMSerializerImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/DOMSerializerImpl.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- DOMSerializerImpl.java 29 Mar 2004 19:19:31 -0000 1.19 +++ DOMSerializerImpl.java 29 Mar 2004 20:02:07 -0000 1.20 @@ -477,7 +477,8 @@ StringWriter destination = new StringWriter(); try { - prepareForSerialization(ser, wnode); + prepareForSerialization(ser, wnode); + ser._format.setEncoding("UTF-16"); ser.setOutputCharStream(destination); if (wnode == null) return null; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]