anastaciocintra / escpos-coffee

Java library for ESC/POS printer
https://anastaciocintra.github.io/escpos-coffee
MIT License
277 stars 72 forks source link

set charsetname for WPC1252 #62

Closed awikatchikaen closed 3 years ago

awikatchikaen commented 3 years ago

Could you modify WPC1252(16) by WPC1252(16, "cp1252") ?

To avoid error between encoding encoding text and page used by the printer ?

For now, I do it with two lines : document.setCharacterCodeTable(EscPos.CharacterCodeTable.WPC1252) document.setCharsetName("cp1252")

Thank you

anastaciocintra commented 3 years ago

hi @awikatchikaen , thanks for inform this bug. I'll test it on next days.

anastaciocintra commented 3 years ago

It's fair that you participate as a contributor of this project. for this you can fork / modify this point of the code and open a pull request.. but its up to you decide (let me know your decision). If not, I'll make the correction.

see you!