Unicode Name For Any Code Point

Character.getName reports the official Unicode name of any code point, or null for unassigned ones, ideal for debugging odd glyphs.

JavaCli Tooling

Code

snippet
public class UnicodeNameLookup {

    public static void main(String[] args) {
        // Character.getName reports the official Unicode name of a code point
        String input = "aΩ中ß";
        input.codePoints().forEach(cp -> {
            String name = Character.getName(cp);
            System.out.println("U+" + Integer.toHexString(cp).toUpperCase()
                    + " -> " + (name == null ? "(unnamed)" : name));
        });

        // unassigned code points yield null, so the page falls back to (unnamed)
        int unassigned = 0x0378;
        System.out.println("U+0378 -> " + Character.getName(unassigned));

        // build the character back from its code point number
        int snowman = 0x2603;
        System.out.println("U+2603 -> " + Character.getName(snowman)
                + ": " + Character.toString(snowman));
    }
}

How it works

Unicode Name For Any Code Point is built around the class UnicodeNameLookup and the function main.

Applying it

The run emits 3 labeled sections — U+, U+0378 ->, U+2603 -> — one per step.

Statements that matter

String name = Character.getName(cp);
int unassigned = 0x0378;
String input = "aΩ中ß";

Interactive Tools for This Topic

FAQ

What does Unicode Name For Any Code Point print when run?
Running the file directly is enough — expect labeled output lines such as `U+`, `U+0378 ->`, `U+2603 ->`.