如何使用Zebra P4t打印机以锐角(例如'é')打印法语字符 [英] How to print French characters with an acute (like 'é') with a Zebra P4t printer
问题描述
我的问题是要使用 Zebra P4t打印机来打印带有如下符号的法语字符:éèàô等。
。
My question is about printing French characters with an acute like: é è à ô etc.
with a Zebra P4t printer.
请考虑以下ZPL指令:
Consider the ZPL instructions below:
^XA
^FO20,20
^CI28
^A0,20,20
^FD
Amitié
^FS
^XZ
我已将这些指令放入编码为UTF-8的文件中。
I have put these instructions into a file encoded as UTF-8.
何时我将此文件发送到Zebra GK420t打印机,在法语单词Amitié<的末尾出现带有急性
é
的字符时,我得到了预期的结果/ code>可以在上方看到。
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.
现在,当我将相同的文件发送到Zebra P4t打印机时,它会打印 |-®
而不是é
字符。
Now, when I send this very same file to a Zebra P4t printer it prints something like |-®
instead of the é
character.
打印机的固件为SHCPT11z48。
The firmware of the printer is SHCPT11z48.
Alos,如果您考虑以下ZPL指令:
Alos, if you consider the ZPL instructions below:
^XA
^FO20,60
^A0,20,20
^FD
Amitié
^FS
^XZ
我已将这些指令放入编码为ANSI的文件中。
I have put these instructions into a file encoded as ANSI.
现在,当我发送此指令时与Zebra P4t打印机完全相同的文件,它将打印Ú
而不是é
字符。
我真的不知道这个字符Ú
的来源。
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?
我没有发送兼容的ZPL指令吗? ?
Am I not sending compatible ZPL instructions?
谢谢您和最诚挚的问候。
Thank you and best regards.
推荐答案
使用 ^ FH
(字段十六进制指示符)为字段加上UTF-8字符前缀,并用其前缀的Unicode十六进制代码替换每个UTF-8字符 _
(列表,例如 é
):
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
这篇关于如何使用Zebra P4t打印机以锐角(例如'é')打印法语字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!