sunmi_printer
sunmi_printer copied to clipboard
You can also combine this package with the package esc_pos_utils ?
Adopting ESC_ Pos_ Utils specialized printing command, unable to print Chinese text
as shown in the following figure
Model: Sunmi NT311
can you show your code ?
@brasizza
final profile = await CapabilityProfile.load(name: 'SUNMI');
final generator = Generator(PaperSize.mm80, profile);
bytes += generator.setGlobalCodeTable('BIG5');
bytes += generator.text(
'88 x 中国熊猫 All-American Cheese burger Long name view test sans serif hahah',
containsChinese: true,
);
bytes += generator.text('中国熊猫', containsChinese: true);
All styles are using ESC_ Pos_ The package 'utils' is written in,
I suspect there is an issue with the GBK character set, which is the package used gbk_codec , is it different from the Sunmi printer used