Skip to content

Commit

Permalink
[FIX] hw_escpos: xmlescpos add cp936(GBK) encoding support
Browse files Browse the repository at this point in the history
Add support for Chinese fonts by adding the cp936(GBK) encoding

Closes #6845
  • Loading branch information
谢立 authored and beledouxdenis committed Jul 2, 2015
1 parent eb315ac commit 8fe042e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/hw_escpos/escpos/constants.py
Expand Up @@ -75,6 +75,7 @@
TXT_ENC_PC862 = '\x1b\x74\x24' # PC862 Hebrew
TXT_ENC_PC864 = '\x1b\x74\x25' # PC864 Arabic
TXT_ENC_PC869 = '\x1b\x74\x26' # PC869 Greek
TXT_ENC_PC936 = '\x1C\x21\x00' # PC936 GBK(Guobiao Kuozhan)
TXT_ENC_8859_2 = '\x1b\x74\x27' # ISO8859-2 Latin2
TXT_ENC_8859_9 = '\x1b\x74\x28' # ISO8859-2 Latin9
TXT_ENC_PC1098 = '\x1b\x74\x29' # PC1098 Farsi
Expand Down
1 change: 1 addition & 0 deletions addons/hw_escpos/escpos/escpos.py
Expand Up @@ -748,6 +748,7 @@ def encode_char(char):
'cp866': TXT_ENC_PC866,
'cp862': TXT_ENC_PC862,
'cp720': TXT_ENC_PC720,
'cp936': TXT_ENC_PC936,
'iso8859_2': TXT_ENC_8859_2,
'iso8859_7': TXT_ENC_8859_7,
'iso8859_9': TXT_ENC_8859_9,
Expand Down

0 comments on commit 8fe042e

Please sign in to comment.