giorgiofellipe / cordova-plugin-datecs-printer

Cordova plugin to print on Mobile Bluetooth ESC/POS Printers - Tested on Datecs DPP-250 Printer
MIT License
73 stars 60 forks source link

Problems printing Traditional Chinese Characters #106

Open pufanalexandru opened 6 years ago

pufanalexandru commented 6 years ago

When I print such characters, it only shows weird symbols. I've tried multiple charsets in printText function (UTF-8, UTF-16, etc.), and while the printed symbols change, the result is still incorrect. I've managed to print the characters with other software, on the same printer (Rongta RPP-200).

This is the text that I'm unable to print: 大埔區

Later update: I've found that I cannot print any non-latin character

csleeds commented 5 years ago

Try print with charset GB2312 or GB18030.

For chinese character printing, any of these two charset should do the job, the only thing is it don't support printing of latin character. In my case, UTF-8 or UTF-16 was unable to print any chinese or latin character, perhaps some other setting is required.