I'm using a printer: Zebra ZQ220
I'm currently using:
- esc_pos_utils: ^1.1.0
- flutter_pos_printer_platform: ^1.0.12
The printer prints English successfully. but when we try to print Arabic, it prints strange characters not the arabic text.
I tried two ways to send encoded string:
First:
final arabicText = utf8.encode('شركه هنا');
Uint8List uint8List = Uint8List.fromList(arabicText);
bytes += generator.textEncoded(uint8List);
First way output (utf8_Arabic):
======================================================
Second:
final List<int> codeUnits = 'شركه هنا'.codeUnits;
final Uint8List unit8List = Uint8List.fromList(codeUnits);
bytes += generator.textEncoded(unit8List);
Second way output (codeUnits_Arabic):
Also, I set the Code page to "CP1252", but this code page works fine in English not Arabic.