Question: Unable to print Simplified Chinese & Japanese characters (Epson TM-T82X)
zameschua opened this issue · comments
Hi receiptline team! I'm really loving what you guys are building so far.
I'm trying to print Simplified Chinese characters onto using escpos
command on an Epson TM-T82X printer, but I'm getting gibberish instead.
For context, I'm using this in a React-Native app.
Also, it seems like Chinese printing is supported from the official docs for this specific printer model.
https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=364
Chinese
receiptline document
敏捷的棕色狐狸跳过懒狗
Printer config
const printer = {
encoding: 'gb18030', // and cp936
command: 'escpos',
};
Japanese
I tried printing the Japanese sample afterwards to test it and there was a similar problem
receiptline document
敏捷的棕色狐狸跳过懒狗
Printer config
const printer = {
encoding: 'cp932', // and shiftjis
command: 'escpos',
};
English
Here's the working English sample for comparison.
Thank you team in advance!
Thank you for using receiptline!
We don't have this model, so I tried to find a similar model.
敏捷的棕色狐狸跳过懒狗
printed correctly with the following steps
- Change the multi-language font setting to Simplified Chinese with the utility.
- Set encoding to
gb18030
in the receiptline options.
I expected the command to set the multi-language font is GS ( E, but it was not listed in the ESC/POS command reference.
I think the manufacturer would like you to set it up with the utility.
Hi @receiptline,
Thank you so much for taking a jab at the question! I'll be trying that out and let you know how it goes :)
Just wanted to give an update, everything works after I configured the printer with the Epson utility.
I still hope to know if there's ever a way to configure it from ESC/POS commands if anyone ever finds out.
Thank you again!
Following up on this, can you share how you got this package to work with React Native? I am trying to do the same thing. Thank you.
Hello!
I found an article by a user who tried to run receiptline with React Native. Sorry for the Japanese article.
https://qiita.com/yosim/items/4313da9a41fe2bb2744b
Thanks!