Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print French characters with an acute (like 'é') with a Zebra P4t printer

My question is about printing French characters with an acute like: é è à ô etc. with a Zebra P4t printer.

Consider the ZPL instructions below:

^XA
^FO20,20
^CI28
^A0,20,20
^FD
Amitié
^FS
^XZ

I have put these instructions into a file encoded as UTF-8.

When I send this file to a Zebra GK420t printer, I get the expected result concerning the character with an acute é at the end of the French word Amitié that you can see above. It is printed properly.

Now, when I send this very same file to a Zebra P4t printer it prints something like |-® instead of the é character.

The firmware of the printer is SHCPT11z48.

Alos, if you consider the ZPL instructions below:

^XA
^FO20,60
^A0,20,20
^FD
Amitié
^FS
^XZ

I have put these instructions into a file encoded as ANSI.

Now, when I send this very same file to a Zebra P4t printer it prints Ú instead of the é character. I really don't see where this character Ú is coming from.

What can I do to solve that problem?

Is a font missing in the printer?

Am I not sending compatible ZPL instructions?

Thank you and best regards.

like image 338
Léa Massiot Avatar asked Oct 15 '25 20:10

Léa Massiot


1 Answers

Simple solution without having to replace anything:

After the opening tag ^XA add ^CI28.

^XA^CI28
your content
^XZ

Zebra support talking about it here.

like image 157
SKREFI Avatar answered Oct 19 '25 09:10

SKREFI



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!