// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.nio.charset.Charset;
import java.util.Map.Entry;

public class CharsetList {
	public static void main(String[] args) {
		for(Entry<String,Charset> e : Charset.availableCharsets().entrySet()) {
			System.out.println(e.getKey() + " = " + e.getValue().aliases());
		}
	}
}
