4

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.

Léa Massiot
  • 1,928
  • 6
  • 25
  • 43

2 Answers2

3

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.

SKREFI
  • 177
  • 2
  • 13
2

You have to prefix the field with UTF-8 characters with ^FH (Field Hexadecimal Indicator) and replace every UTF-8 character with their unicode hexadecimal code prefixed by an _ (list, example for é):

^XA
^FO20,20
^CI28
^A0,20,20
^FD
Amiti_C3_A9
^FS
^XZ
Veve
  • 6,643
  • 5
  • 39
  • 58
  • Thank you. Same comment as above: the problem is P4t specific. On a GK420t this code works. It doesn't on a P4t. – Léa Massiot Apr 29 '15 at 17:14
  • 1
    `You have to prefix the field with UTF-8 characters with ^FH` why doesn't the example use `^FH`? – tresf Jan 17 '20 at 22:17
  • 2
    Answering my own question, `^FH` is to **set** the separator, which is `_` by default, therefor not needed in the above example. – tresf Jan 17 '20 at 22:24
  • `^FH_^FDAmit_C3_A9^FS`works perfectly when the default have been changed – pdem Mar 17 '21 at 08:35