UTF8GEN(1) | General Commands Manual | UTF8GEN(1) |
utf8gen - Generate UTF-8 output from hexadecimal input
utf8gen [ [-e format1] | [-E format2] ] [-r
formatr]
[ [-u utf8_format] | -n] [-c] [-s]
[-i input_file] [-o output_file]
utf8gen reads a list of hexadecimal ASCII values in the range 0 through 10FFFF, one per line, and prints the UTF-8 encoding of that number as a Unicode code point.
Each input line must begin with a hexadecimal number. A string may follow after that, which can be echoed to the output as the "remainder" (see the -r option below). The total input line length, including an ending newline, is limited to 4096 bytes.
utf8gen -e "0x%04X " -u "\%03o"
utf8gen -E "U+%04x = 0%02o = "
utf8gen -s -e " /* U+%04X */" -u "\%03o"
Files contain lines that each begin with an ASCII hexadecimal code in the valid Unicode range 0 through 10FFFF, inclusive. This hexadecimal code may optionally be followed by a space followed by an arbitrary string ending with a newline, up to the limit of 4096 bytes per input line. An example line could be the following (with no indent):
For more detailed explanations and examples of common usage, consult the utf8gen texinfo manual.
utf8gen was written by Paul Hardy.
utf8gen is Copyright © 2018 Paul Hardy.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
No known bugs exist.
2018 Jun 30 |