Hi Fr�d�ric,
Fr�d�ric Lanic wrote:
I'm parsing a svg file to complete it. My parser is jdom.
But, my problem is the encoding.
The svg file is utf-8 encoding. There are some accents inside.
When I save it, all the utf-8 characters loaded are not utf-8 saved.
I do not see where is the mistake.
Here's my little code :
XMLOutputter outputter = new XMLOutputter("", false, "UTF-8");
FileWriter writer = new FileWriter(sFileName);
This uses "the default character encoding" I don't know what
that is for your platform. I would suggest that you create
a FileOutputStream and wrap it with an OutputStreamWriter which
allows you to specify the encoding to be used.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]