UTF8 encoding [message #198515] |
Mon, 20 August 2007 08:27  |
Eclipse User |
|
|
|
Hi People,
I'm developing a plugin, that writes xml files. Since I'm not using xerces
or any other xml API I have a problem dealing with Unicode characters. For
instance the german "Ö" will be written like "À". But I need the
decompsoed form like "\u006F". Is there any class in the webtools that
could do this transformation?
Kind regards,
Klaus
|
|
|
|
Re: UTF8 encoding [message #198835 is a reply to message #198515] |
Wed, 22 August 2007 22:35  |
Eclipse User |
|
|
|
On Mon, 20 Aug 2007 08:27:32 -0400, Klaus <kschaef@de.ibm.com> wrote:
> Since I'm not using xerces
> or any other xml API I have a problem dealing with Unicode characters. For
> instance the german "Ö" will be written like "À". But I need the
> decompsoed form like "\u006F". Is there any class in the webtools that
> could do this transformation?
>
Just to be sure, you do know you don't need XML APIs to read and write UTF-8, right?
There are plain 'ol Java io API's where you can specify the charset to use.
Also, one step better :) if you are using Eclipse IFile's, they have some capabilities
to automatically detect and use the appropriate charset, depending on the IFile's contentType.
Hope that helps,
|
|
|
Powered by
FUDForum. Page generated in 0.07128 seconds