NielsLeenheer / ReceiptPrinterEncoder

Create a set of commands that can be send to any receipt printer that supports ESC/POS, StarLine or StarPRNT
MIT License
185 stars 18 forks source link

[Question] How do we print chinese characters #20

Open parth-koshta opened 1 year ago

parth-koshta commented 1 year ago

Hi @NielsLeenheer Thank you for building this encoder.

I've a doubt though, In the example you've mentioned setting codepage cp936 for printing Chinese text, but this codepage is not included in the supported list of codepages.

We need to print Chinese characters in the receipt. Any idea on how do we achieve this?

NielsLeenheer commented 1 year ago

I've removed the Chinese example from the README, as Star printers do not support Chinese codepages. I'll investigate if there is an alternative way for the printer to support Chinese text, but unfortunately currently the library only supports non-latin characters using codepages.