NielsLeenheer / ReceiptPrinterEncoder

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

Uncaught Error: Codepage not supported by printer #3

Closed jswangtao closed 1 month ago

jswangtao commented 1 year ago

Follow the example code Codepage in readme.md

let result = encoder
    .codepage('windows1251')
    .text('Iñtërnâtiônàlizætiøn')
    .codepage('cp936')
    .text('简体中文')
    .encode()

Uncaught Error: Codepage not supported by printer

jswangtao commented 1 year ago

I want to print Simplified Chinese, but it seems that CP936 does not support it

NielsLeenheer commented 1 month ago

CP936 is generally not supported by printers, so it has been removed from the documentation.