[manual index][section index]


unicode - interpret Unicode characters


unicode [ -nt ] hexmin-hexmax

unicode [ -t ] hex ...

unicode [ -n ] char ...


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 representations. 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:

Forces numeric output to avoid ambiguity with numeric characters.
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.


unicode p
Print the hex value of p.
unicode 2200-22f1
Print a table of miscellaneous mathematical symbols.


Table of characters and descriptions.




tr(1), utf(6), font(6)

UNICODE(1 ) Rev:  Thu Feb 15 14:42:47 GMT 2007