Unicode

Posted on by Kim

To write country-specific letters:

public static void main(String[] args) {
    System.out.println("æ...:" + Integer.toString('æ', 16));
    System.out.println("ø...:" + Integer.toString('ø', 16));
    System.out.println("å...:" + Integer.toString('å', 16));
    System.out.println("Æ...:" + Integer.toString('Æ', 16));
    System.out.println("Ø...:" + Integer.toString('Ø', 16));
    System.out.println("Å...:" + Integer.toString('Å', 16));

    System.out.println("ä...:" + Integer.toString('ä', 16));
    System.out.println("Ä...:" + Integer.toString('Ä', 16));
    System.out.println("ö...:" + Integer.toString('ö', 16));
    System.out.println("Ö...:" + Integer.toString('Ö', 16));

    System.out.println("\u00e6" == "æ");
}

0 Responses to "Unicode":