I'm trying to print £ and € sign with esc_pos_utils_plus package for this printer but it prints Û .
When I use following profile:
final profile = await CapabilityProfile.load('XP-N160I');
final generator = Generator(PaperSize.mm80, profile);
bytes += generator.setGlobalCodeTable('CP1252');
The code:
List<int> bytes = [];
final profile = await CapabilityProfile.load('XP-N160I');
final generator = Generator(PaperSize.mm80, profile);
bytes += generator.setGlobalCodeTable('CP1252'); //I have also tested CP437
bytes += generator.text("Amount £50");
bytes += generator.cut();
await _print(data: bytes);
Here, the output is Amount 50 But if I remove profile and GlobalCodeTable, the output is Amount Û50
How to fix this?
Please try this, i am able to print in XP-N160I
May be u need to set the correct code page also in printer
generator.rawBytes([0x80]);