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

   Element root = doc.addElement("ficheTechnique");
   Element elemVehicule = root.addElement("vehicule");
   elementCar = elementMoteur.addElement("car");
   elementCar.addElement("name").addText("Cylindrée");
   elementCar.addElement("value").addText(cylindree + " cm³");

OutputFormat outFormat = OutputFormat.createPrettyPrint();
XMLWriter writer;
ByteArrayOutputStream out = new ByteArrayOutputStream();
writer = new XMLWriter(out, outFormat);
writer.write(doc);
writer.flush();
writer.close();
s = out.toString();


</code>

I'll forward the String s to a JSP page and want to display the XML using XSLT transform.

When I desplay the result I've :
Cylindr??e : 1300 cm??
And not :
Cylindrée : 1300 cm³

Where's the problem ? I'm using UTF-8 everywhere in my pages...

Thanks in advance.

Steph
begin:vcard
fn;quoted-printable:St=C3=A9phane Toussaint
n;quoted-printable:Toussaint;St=C3=A9phane
email;internet:[EMAIL PROTECTED]
x-mozilla-html:TRUE
version:2.1
end:vcard

Reply via email to