andrey-ushakov / esc_pos_printer

ESC/POS (thermal, receipt) printing for Flutter & Dart
BSD 3-Clause "New" or "Revised" License
356 stars 317 forks source link

Unable to print Burmese (Myanmar) in Unicode words #78

Open ThitSarNyanLynn opened 4 years ago

ThitSarNyanLynn commented 4 years ago
ticket.text('Special 2: (ပြည်ဗံဒါပင်ထက် ) unicode blåbærgrød',
        styles: PosStyles(codeTable: 'CP1252'));

I found the following error while trying to print unicode Burmese words.

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Invalid argument (string): Contains invalid characters.: "Special 2: (ပြည်ဗံဒါပင်ထက် ) unicode blåbærgrød"

ghost commented 4 years ago

@ThitSarNyanLynn Did you find any solution? I am having the same problem with Japanese characters. Please share if you have found any solution.

ThitSarNyanLynn commented 4 years ago

@amibappy still can't print it. I am trying to print it via php Mike42 library.

ghost commented 4 years ago

@ThitSarNyanLynn Thanks for your reply. But isn't that library for PHP?