Hi Thomas,
Thank you for your help. It's work.
Regards,
Frederic
----- Original Message -----
From: "Thomas DeWeese" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, March 15, 2005 1:27 AM
Subject: Re: Parsing svg file
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]