![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e185. Listing All Available Unicode to Character Set ConvertersMap map = Charset.availableCharsets(); Iterator it = map.keySet().iterator(); while (it.hasNext()) { // Get charset name String charsetName = (String)it.next(); // Get charset Charset charset = Charset.forName(charsetName); }Here's a sample of the output: ISO-8859-1 ISO-8859-15 US-ASCII UTF-16 UTF-16BE UTF-16LE UTF-8 windows-1252
© 2002 Addison-Wesley. |