Skip to content
On this page

set the charset beta

use

The default is utf-8 encoding, you need to set it to the encoding you need

js
import printease from 'printease'
let zpl = new printease.zpl.ZplLib()
zpl.init()
zpl.setEncoding('GB18030')
zpl.setText(10, 10, '世界你好')
zpl.setPrint()
console.log(zpl.getBuffer())