[Top] [Prev] [Next]

unicode - interpret Unicode characters

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, Unicode, ASCII - character set and format in Appendix A).

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

Options
-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 not be helpful 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, Unicode, ASCII - character set and format in Appendix A

font, subfont - external format for character fonts and subfonts in Appendix A



[Top] [Prev] [Next]

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