[Top] [Prev] [Next]


unicode - interpret Unicode characters


unicode [-nt] hexmin - hexmax
unicode [-t]  hex [...]
unicode [-n]  characters


The unicode command converts between UTF and character values from the Unicode Standard (see utf).

If given a range of hexadecimal numbers, unicode prints a table of the specified Unicode characters - their values and UTF representations. Otherwise it translates from UTF to numeric value or vice versa, depending on the appearance of the supplied text;

The -n option forces numeric output to avoid ambiguity with numeric characters.


If converting to UTF, the characters are printed one per line unless the -t flag is set, in which case the output is a single string containing only the specified characters.

The output of unicode may be unhelpful if the characters printed are not available in the current font.

The file /lib/unicode contains a table of characters and descriptions, sorted in hexadecimal order.

unicode p

Print the hex value of 'p'.

unicode 2200-22f1

Print a table of miscellaneous mathematical symbols.


table of characters and descriptions.

See Also

utf and font

[Top] [Prev] [Next]

Copyright © 1996,Lucent Technologies, Inc. All rights reserved.