sunmi_printer icon indicating copy to clipboard operation
sunmi_printer copied to clipboard

You can also combine this package with the package esc_pos_utils ?

Open LeiYao123 opened this issue 2 years ago • 2 comments

Adopting ESC_ Pos_ Utils specialized printing command, unable to print Chinese text

as shown in the following figure image

Model: Sunmi NT311

LeiYao123 avatar Aug 10 '23 01:08 LeiYao123

can you show your code ?

brasizza avatar Aug 10 '23 03:08 brasizza

@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

LeiYao123 avatar Aug 10 '23 03:08 LeiYao123