> 1. Check for XML encoding attribute.  If present, use that.

Ok.

> 2. Check whether the file is in UTF format, according to other messages
> here.

Ok

> 3. Try anything you think of that I haven't.

Well... If only I could think of what I havent already thought about,
wouldnt it be great ? It reminds me of the thread about IntelliJ reading my
thoughts ;o)

> 4. If the selected charset in IDEA is not UTF (since we know the file
isn't
> in UTF anyway), use that.

You mean use the default choosen encoding (default, or the defined encoding
defined as default in "IDE options")

> 5. If the selected charset IS UTF, use the system default 8-bit charset.

Hmm... if it is UTF, use UTF, not the default 8-bit charset!!!!!

> Does that sound like a reasonable detection scheme?

With those little corrections, yes, it's definetely the way to go Walter :o)

Guillaume


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

Reply via email to