Re: Encodings supported by Java?
- From: Casper <casper@xxxxxx>
- Date: Wed, 29 Jun 2005 12:47:21 +0200
Well it turns out, I can test whether the characterset/encoding is supported by using the sun.io.CharacterEncoding class:
sun.io.CharacterEncoding ce = new sun.io.CharacterEncoding();
System.out.println( ce.aliasName("Cp168")); // null: doesn't exist
System.out.println( ce.aliasName("US-ASCII")); // "ASCII"
System.out.println( ce.aliasName("Cp865")); // "Cp865"Not sure how safe/correct that is. My biggest problem still persists though. How do I encapsulate all encodings, it seems there is no way to enumerate the codepages through sun.io or any other package.
Regards, Casper .
- References:
- Encodings supported by Java?
- From: Casper
- Encodings supported by Java?
- Prev by Date: Encodings supported by Java?
- Next by Date: JTable with no focus indication
- Previous by thread: Encodings supported by Java?
- Next by thread: JTable with no focus indication
- Index(es):