List Charsets : Charset « I18N « Java Tutorial






import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.Set;
import java.util.SortedMap;

public class Main {
  static public void main(String args[]) throws Exception {
    SortedMap charsets = Charset.availableCharsets();
    Set names = charsets.keySet();
    for (Iterator e = names.iterator(); e.hasNext();) {
      String name = (String) e.next();
      Charset charset = (Charset) charsets.get(name);
      System.out.println(charset);
      Set aliases = charset.aliases();
      for (Iterator ee = aliases.iterator(); ee.hasNext();) {
        System.out.println("    " + ee.next());
      }
    }
  }
}








13.20.Charset
13.20.1.Listing All Available Unicode to Character Set Converters
13.20.2.Converting Between Strings (Unicode) and Other Character Set Encodings
13.20.3.encoder and decoder use a supplied ByteBuffer
13.20.4.Detect non-ASCII characters in string
13.20.5.List Charsets
13.20.6.Translate Charset
13.20.7.extends Charset to create Hex Charset