i have my flutter app that use cpcl commands to communicate with zebra zq220 printer. it works fine but doesn't print € euro symbol
here my function to create cpcl commands
List<String>lst=[];
lst.add("TEXT 4 2 0 80 € 12.9");
//HERE WITH OTHER COMMANDS AND FINALLY
String ss="";
for(int i=0;i<lst.length; i)
{
ss ="${lst[i]}\r\n"
}
await sendByte(ss);
and here my function to send to my zebra printer
Future<void> sendByte(String scmd) async {
List<BluetoothService> services = await connectDevice!.discoverServices();
for (BluetoothService service in services) {
var characteristics = service.characteristics;
for (BluetoothCharacteristic c in characteristics) {
//here are three encode type that work fine all with zebra printer, but they don't print euro symbol
c.write(gbk.encode(scmd));
//c.write(utf8.encode(scmd));
//c.write(gbk_bytes.encode(scmd));
}
}
}
So could someone help me to find the solution, how to print euro symbol with this?? Thanks in advance Best Regards
CodePudding user response:
Try getting the euro symbol by entering the escape character sequence into the string instead of the euro symbol.
The euro escape characters are highlighted in red below:
CodePudding user response:
If i remember well, and if you use ZPL for communication with printer, you can send the $
char to printer. Printer will print the good char if correctly parametered.
In my case it was a zebra label printer.