mike42 / escpos-php

PHP library for printing to ESC/POS-compatible thermal and impact printers
Other
2.56k stars 861 forks source link

Does it support Traditional Chinese in Epson TM-P20? #423

Closed ngkung closed 6 years ago

ngkung commented 7 years ago

Dear Mike,

It is great that I find TM-P20 really working perfectly with ESCPOS except it cannot print out traditional Chinese (double-byte characters). It is UTF-8 already. I know you have already made textChinese and it seems it works for GB (actually, I cannot work it out for GB).

I have checked https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=338. It supports Kanji which is Japanese Chinese characters. In the textChinese function, I know you have already used Kanji. Do you mean that there must be traditional Chinese character font in the printer to print out Chinese characters? Any other way to work it out? I mean print out Chinese characters.

Howard

mike42 commented 6 years ago

Chinese output will not currently work on that model of printer.

If you do a search on the issue tracker for "ImagePrintBuffer", you will see some examples where we have rendered text to small images to work around this issue in other scripts.

So, I'm going to close this off as answered. I'm open to reviewing pull requests that implement this feature, but with no documentation, use, or way to test, I am not likely to add it to the driver myself.

See also https://reference.epson-biz.com/modules/ref_charcode_en/index.php?content_id=110

ngkung commented 6 years ago

No problem. I have already made update on the firmware and made a simple change of the textChinese to support traditional chinese. It works fine now. Thank you so much.

JefferyHus commented 6 years ago

Would you like to share what you did because I am stuck with Japanese.

ngkung commented 6 years ago

Dear Jeffery,

     Actually we found that the machine was not preloaded with

Traditional Chinese. Then, we returned it to the vendor and got it updated with traditional Chinese. It works. Of course, there was characters encoding issue. It is easy to sort out. I don't think it is going to do with your issue. The way we found out it was not preloaded with Chinese characters was simply using the javascript epos-2.3.0.js provided by EPSON. It was easy to use. Thank you so much.

Howard

On 15 December 2017 at 12:06, Jeffery ThaGintoki notifications@github.com wrote:

Would you like to share what you did because I am stuck with Japanese.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mike42/escpos-php/issues/423#issuecomment-351908065, or mute the thread https://github.com/notifications/unsubscribe-auth/AKOQCq1IM1Gbec4LC1JLOu6W6duxmjn4ks5tAfBRgaJpZM4PQ-_v .