programming-examples/java/Core_Java/Listing All Available Unicode to Character Set Con.java
2019-11-15 12:59:38 +01:00

17 lines
524 B
Java

Listing All Available Unicode to Character Set Converters
public static void main(String args[])
{
Map map = Charset.availableCharsets();
Iterator it = map.keySet().iterator();
while (it.hasNext()) {
// Get charset name
String charsetName = (String)it.next();
System.out.println("Charset Name "+charsetName);
// Get charset
Charset charset = Charset.forName(charsetName);
System.out.println("Charset "+charset);
}
}