NielsLeenheer / ThermalPrinterEncoder

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

Uncaught Error: Codepage not supported by printer #3

Open jswangtao opened 11 months ago

jswangtao commented 11 months 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 11 months ago

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