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
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
-