Tiny Go tool that shows how any character is represented in Unicode, UTF-8, UTF-16, and UTF-32 encodings.
go install github.com/fmo/unicode@latestgo run main.go π
or from the binary
./unicode π
Output:
Character: π
Unicode code point(s): [U+1F680]
UTF8 bytes: 0XF0 0X9F 0X9A 0X80
UTF16 units: 0x[d83d de80]
UTF32 code points: [U+1F680]