[dom4j-user] Unicode content

2005-03-31 Thread Henry Cho
I am trying to create an XML document that will store a Unicode string inside of the tags.  I noticed that the string that comes back from the asXML() method seems to garble the string that I set in the element of my document.   Does dom4j support creation of documents with Unicode

Re: [dom4j-user] Unicode content

2005-03-30 Thread Edwin Dankert
That's a bug... The asXML() method should read: ByteArrayOutputStream out = new ByteArrayOutputStream(); XMLWriter writer = new XMLWriter(out, outputFormat); writer.write( doc); return out.toString( outputFormat.getEncoding()); Regards, Edwin -