[Top] [Prev] [Next]

unicode

unicode - interpret Unicode characters

Synopsis

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

Description

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;
-n

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

-t

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.

Examples
unicode p

Print the hex value of 'p'.

unicode 2200-22f1

Print a table of miscellaneous mathematical symbols.

Files
/lib/unicode

table of characters and descriptions.

See Also

utf and font



[Top] [Prev] [Next]

infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights reserved.