Skip to main content
100%

look up names of characters in text

✓ Published0🌍 Public
Aamundo
Last edited Jun 11, 2012
Created on Jun 11, 2012

This example maps the characters of UTF-8 text to their Unicode names. Reading input from standard input, the script decodes the text and iterates through each letter, using Python’s `unicodedata.name` to retrieve the official character name and printing it alongside the character, its code point in hexadecimal, and a Unicode escape sequence. Characters without a name are silently skipped. The output is written to standard output with UTF-8 encoding via `codecs.getwriter`.

AI-generated description

Similar vizzes