Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The HyperTerminal VT-UTF8 character set option uses the UTF8 algorithm to map a Unicode character into one or more 8-bit bytes for transmission. Because the UTF8 algorithm leaves 7-bit US-ASCII characters unchanged, the algorithm provides a convenient means of adding Unicode capability to an ASCII transmission.
For a Hyperterminal terminal emulation protocol, the supported keyboard characters visible on the wire are unchanged by the selection of the HyperTerminal VT-UTF8 character set option. Each supported keyboard key retains its original mapping, either to a single US-ASCII character or to an escape sequence of multiple US-ASCII characters.
For a HyperTerminal file transfer protocol, the supported packet control and data characters visible on the wire are unchanged by the selection of the HyperTerminal VT-UTF8 character set option. Each packet control character retains its original mapping, either to a single US-ASCII character or to an escape sequence of multiple US-ASCII characters. Each data character in the transferred file is transmitted as an 8-bit byte and so retains the original encoding of the file.
UTF8 Algorithm
The UTF8 algorithm maps a Unicode character into a string of 8-bit bytes. The number of 8-bit bytes in the string depends on the bit width of the Unicode character. Characters with a bit width of seven or less, including US-ASCII characters, are unchanged by the UTF-8 mapping.
| Bit Width | UTF8 Encoding |
|---|---|
| 1–7 | 0x0nnnnnnn |
| 8–11 | 0x110nnnnn 0x10nnnnnn |
| 12–16 | 0x1110nnnn 0x10nnnnnn 0x10nnnnnn |
Example
The UTF8 encoding for the 16-bit Unicode character "0x5C71" is a string of three 8-bit bytes that is represented as "0xE5B1B1". The bit encoding of the string is as follows:
"11100101 10110001 10110001"
Remarks
For Microsoft licensing information, see Published Protocols and Royalty-Free License on Microsoft Developer Network (MSDN).
See Also
HyperTerminal ANSIW Character Set Option, HyperTerminal VT100J Character Set Option, HyperTerminal RS-232 Communications, HyperTerminal Emulation Protocols, HyperTerminal File Transfer Protocols