There is also a thread in the bug newsgroup regarding XML and UTF-8
encoding.
We also came to the conclusion that the default encoding should be used when
the file is not in UTF-8 and if it's an XML file where the encoding is not
specified.
I believe that is the common way of oding things in other editors as well.

Guillaume

> Okay, so I've done some search about charsets, and so on.
> There are two aspects of the problem:
> - the easy one is for XML files, the encoding is defined there, so it's
very
> easy to use the right encoding for XML files.
> - the hardest one is for Classes and JSP: we can easily guess if a file is
> UTF-x or not. The problem arise when it's not UTF. If it's not UTF, as
it's
> difficult to find rules to guess the right 8-bit charset, the default
system
> encoding should be used.
>
> Does it make sense ?
> At least, my UTF8 files will be opened with the right encoding, and my
> ISO-8859-1 files will also be opened with my default system charset. In
both
> cases, whether they be XML or Java files.
> By the way, do you use the Charset classes from JDK1.4 ? If yes, there may
> be some stuff to explore, such as not modifying characters that are not
part
> of the current choosen or guessed encoding.
>
> Guillaume
>
>


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to