[jdom-interest] Re: Use ISO instead of UTF-8 for caractere encoding
Philippe Delrieu
pdelrieu at cybernomade.com
Tue Aug 15 22:18:44 PDT 2000
I found a solution that seem to work.
First I download a last version of the sources and not the beta4 binary.
Since the release of the beta 4 a lot of change as been done on the API.
The ouput method has change and the caracter encoding can be specified
now.
For exemple :
XMLOutputter output = new XMLOutputter();
Element elem = new Element("XMLChannel");
Document doc= new Document(elem);
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
output.output(doc, outStream, "ISO-8859-1");
This API is new and seem t work.
I think it would be interesting to update the Milestone release or to
explain that a lot of change has been done on the API and it's preferable
to us current CVS version and not the beta4 release.
Regards
Philippe Delrieu
Cybernomade
Mattias Arbin a écrit :
> Philippe,
> I have the same problem. Have you found a solution?
>
> >I have problem using ISO-8859-1 encodong instead of UTF-8. Special
> >charactere like é àçè are badly encoded.
> >Is there a way to specify the encoding of processed character in JDOM
> >especialy when generating XML document.
>
> >Regards,
>
> >Philippe Delrieu
> >Cybernomade.com
>
> /Mattias Arbin, C-takt AB
More information about the jdom-interest
mailing list