Tuesday, 6 November 2007

The unicode command

I was just told about the unicode command.

On a Debian based system, try sudo apt-get install unicode.

Running the unicode command on the different characters 'y' and 'у' (see earlier post) looks like this:


nikolaj@fon:~$ unicode yу
U+0079 LATIN SMALL LETTER Y
UTF-8: 79 UTF-16BE: 0079 Decimal: y
y (Y)
Uppercase: U+0059
Category: Ll (Letter, Lowercase)
Bidi: L (Left-to-Right)

U+0443 CYRILLIC SMALL LETTER U
UTF-8: d1 83 UTF-16BE: 0443 Decimal: у
у (У)
Uppercase: U+0423
Category: Ll (Letter, Lowercase)
Bidi: L (Left-to-Right)

No comments: