It's sometimes useful to know which charsets (character encodings) are available on the system. The following is an easy way to list them and the code is HERE. Generally speaking, the Map key is depicted in the same way as the value. The output can be useful to use in things like this transcoding utility.

import java.nio.charset.Charset;

import java.util.Map;
import java.util.SortedMap;


public class Charsets {
    public static void main(String[] args) {
        SortedMap<String, Charset> cs = Charset.availableCharsets();

        for (Map.Entry<String, Charset> e : cs.entrySet()) {
            System.out.printf("%s=%s%n", e.getKey(), e.getValue().toString());
        }
    }
}