leesiongchan / react-native-esc-pos

A React Native ESC/POS module to help you connect to your ESC/POS printer easily.
MIT License
80 stars 84 forks source link

Chinese character support? #64

Open ManveeYew opened 3 years ago

ManveeYew commented 3 years ago

Hi, How can i print character in chinese language?

leesiongchan commented 3 years ago

Coincidentally, this lib support GBK out-of-box. We hardcoded (ugly) GBK charcode in the code =(

ManveeYew commented 3 years ago

Tried to print chinese characters, unfortunately it print random weird blocks instead.

leesiongchan commented 3 years ago

Do you mean traditional chinese? Right now is only GBK is supported, if you want to have other charcode you have to modify the code, sorry was a rush project didn't put much considering in design =(

lamman999 commented 3 years ago

@leesiongchan I see a lot of people want to implement the multi-language function? Do you think we should implement it? I will give it a try.