Printing degree symbol

J Jonathan Titchener 2 years 11 months ago
129 1 0

I'm using a Xamarin Android app and using the Link-OS SDK to send the following to a ZQ520 over bluetooth and the degree symbol doesn't print correctly, I'm getting an extra character before it (see attachment). Anyone have any ideas?

ZebraPrinter printer = ZebraPrinterFactory.GetInstance(PrinterLanguage.CPCL, thePrinterConn);
printer.SendCommand($"! 0 200 200 100 1\r\n");
printer.SendCommand("JOURNAL\r\n");
printer.SendCommand("! U1 SETLP 5 2 30\r\n");
printer.SendCommand("CENTER\r\n");
printer.SendCommand("SETBOLD 1\r\n");
printer.SendCommand("TEXT 4 0 0 10 TENNESSEE FIRE 70°\r\n");
printer.SendCommand("FORM\r\n");
printer.SendCommand("PRINT\r\n");

Please register or login to post a reply

1 Replies

D Dmitry Prokhorov

Hello Jonathan,

In case your string literals are unicode ones there is a chance you may need to use ENCODING command with "UTF-8" value
https://support.zebra.com/cpws/docs/comtec/PROMAN-CPCL_RevY.pdf#page=19

Also, could it be an option for you to switch to ZPL language that have a lot of printing capabilities?

Dmitry Prokhorov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

CONTACT
Can’t find what you’re looking for?