Re: [dom4j-user] Need Help for Encoding.

2004-10-22 Thread Barnabas Davoti
OutputFormat uses UTF-8 as the default encoding, so it really should work. You don't really need to define it explicitly as: outFormat.setEncoding("UTF-8"); You use OutputStream and not a Writer, so the encoding will be really used defined by the format. The Java source is something like iso8859-

[dom4j-user] Need Help for Encoding.

2004-10-21 Thread Stéphane Toussaint
Hi, I'm trying to use XMLWriter in order to well format an XML String that I've just build from information in DataBase. An ex : Element root = doc.addElement("ficheTechnique"); Element elemVehicule = root.addElement("vehicule"); elementCar = elementMoteur.addElement("car"); elementC