Open KhomsanSaejia opened 2 years ago
Hi, it's very easy to support utf8 encoding which would help you print many languages. You just have to add an entry in the default section of capabilities.json and if you don't want to bother with that, you can use my fork:
https://github.com/waqadArshad/esc_pos_utils
as:
esc_pos_utils:
git:
url: https://github.com/waqadArshad/esc_pos_utils.git
and if it fixes your issue, please remember to STAR the repo.
@waqadArshad Hi, I try with this. but still not working.
this is my code.
final profile = await CapabilityProfile.load();
final generator = Generator(PaperSize.mm80, profile);
bytes += generator.setGlobalCodeTable('UTF-8');
var encode = await CharsetConverter.encode('UTF-8', 'မြန်မာစာ');
bytes += generator.textEncoded(encode);
// or
var encode = Uint8List.fromList(utf8.encode('မြန်မာစာ'));
bytes += generator.textEncoded(encode);
this is print result
Hi, can you please check if your printer is set to UTF-8 encoding or not?
@waqadArshad printer Selfttest
page show
Current character:
Chinese(GB18030)
Alphanumeric
then change this. there must be more encodings available.