paystory-de / thermal-printer-cordova-plugin

Cordova wrapper for ESC/POS Thermal Printer library
Apache License 2.0
50 stars 39 forks source link

Charset Encoding ? #13

Closed uokivan closed 2 years ago

uokivan commented 2 years ago

Hi @patrickbussmann

This is a great plugin.

Can we Charset Encoding ? Hope can print word in Traditional Chinese.

Thank you very much

uokivan commented 2 years ago

I change the code from "ThermalPrinterCordovaPlugin.java" :

From : charsetEncodingData.optString("charsetName", "windows-1252"),

To: charsetEncodingData.optString("charsetName", "GBK"),

However, when I check the encoding by getEncoding(), the encoding still is "windows-1252"........

patrickbussmann commented 2 years ago

What printer are you using? Sometimes you must configure it a bit separate. I had a printer where I had a separate software for setting up the charset before I was able to print with it.