-
Notifications
You must be signed in to change notification settings - Fork 311
USB Printer Encoding Problem with Chinese Characters #281
Copy link
Copy link
Open
Milestone
Description
thank you for seeing my problem.
There is something wrong with my encoding, it occurs that Chinese characters are wrongly printed when I write like this :
printer.text("你好")
but I get wrong characters printed like "挂批"
I tried to set the encoding as #-- coding: gbk -- ,but got encoding problem.
And I tried to use the magic encode like from escpos.magicencode import Encoder, but got no module named escpos.magicencode as ImportError.
So I wander how to set the encoding to make my printer print correct Chinese characters.
Sorry for my English and naive questions.
I have been working on this for one week and still could't figure it out.
Thanks again.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels