UNICODE(1)UNICODE(1)NAMEunicode - interpret Unicode characters
SYNOPSISunicode [ -nt ] hexmin-hexmax
unicode [ -t ] hex ...
unicode [ -n ] char ...
DESCRIPTION
Unicode converts between UTF and character values from the Unicode
Standard (see utf(6)).
If given a range of hexadecimal numbers, unicode prints a table of the
specified Unicode characters including their values and UTF representa‐
tions. Otherwise, it translates from UTF to numeric value or numeric
value to UTF, depending on the appearance of the supplied text. If
converting to UTF, the characters are printed one per line.
The options are:
-n Forces numeric output to avoid ambiguity with numeric charac‐
ters.
-t Output a single string containing the specified characters,
rather than one per line.
The output of unicode might not be helpful if the characters printed
are not available in the current font.
EXAMPLESunicode 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.
SOURCE
/appl/cmd/unicode.b
SEE ALSOtr(1), utf(6), font(6)UNICODE(1)