Open caichunjian520 opened 1 year ago
let receipt = Receipt(.🖨️58(String.GBEncoding.GB_18030_2000))
<<< QRCode(content: "你好,世界")
<<~ .page(.printAndFeed(lines: 0))
let data = Data(receipt.data)
dummyPrinter.write(data)
Printer
framework has been rewrite.
PS: String.GBEncoding.GB_18030_2000
is key point.
All works fine with English Characters. If I change the text to Chinese, the QRCode won't print