7. How to select and set a character set. Background: the inbuilt printers are compatible with the transmission in a form of
binary byte stream, so a character set must be selected and set for the text to be printed
which is sent in a form of byte code; multi-byte, GB18030 character encoding are the
default device settings. The single-byte encoding types for inbuilt printers are:
[参数] [编码] [国家]
[Parameter] [Encoding] [Country]
0 "CP437"; 美国欧洲标准 The USA, European standard
2 "CP850"; 多语言 Multiple languages
3 "CP860"; 葡萄牙语 Portuguese
4 “CP863"; 加拿大 -法语 Canada - French
5 “CP865"; 北欧 Northern Europe
13 "CP857"; 土耳其语 Turkish
14 "CP737"; 希腊语 Greek
15 "CP928";
16 "Windows-1252";
17 "CP866"; 西里尔文 Cyrillic
18 "CP852"; 拉丁-中欧语 Latin - Central European
19 "CP858";
21 "CP874";
33 "Windows-775"; 波罗的海语 Baltic
34 "CP855"; 西里尔文 Cyrillic
36 "CP862"; 希伯来语 Hebrew
37 "CP864";
254 "CP855"; 西里尔文 Cyrillic
The multiple-byte encoding types for inbuilt printers are:
[参数] [编码]
[Parameter] [Encoding]
0x00 || 0x48 "GB18030";
0x01 || 0x49 "BIG5";
0xFF “utf-8”;
The device settings can be adjusted in accordance to the needs of different countries
or other requirements to enable the printers to identify the data stream of the content to
be printed. To print CP437, please send:
0x1C 0x2E ——set it as the single-byte encoding type
0x1B 0x74 0x00 ——set it as the CP437 of the single-byte code page
To print CP866, please send:
0x1C 0x2E ——set it as the single-byte encoding type
0x1B 0x74 0x11 ——set it as the CP866 of the single-byte code page
To print traditional characters, please send:
0x1C 0x26 ——set it as the multiple-byte encoding type
0x1C 0x43 0x01—— set it as the BIG5 encoding of the multiple-byte code page
To print UTF-8 encoding content (all Unicode character sets are supported if using
UTF-8 encoding, and all content can be printed), please send:
0x1C 0x26 ——set it as the multiple-byte encoding type
0x1C 0x43 0xFF—— Set it as the UTF-8 encoding of the multiple-type code page