printing arabic on zebra ZM400 , the characters appear separated - arabic

^XA
^FO32,23
^A#E:TT0003M_.TTF,N,23,32
^PA1,1,1,1
^FH
^CI28
^FD_D9_85_D8_AD_D8_A7_D9_83_D9_85_D8_A9
^FS
^XZ
I am using the above code to print arabic on a zebra printer ZM400 but the characters appear separated instead of connected " م ح ا ك م ة" it should appear like this
محاكمة
please help

It work for me try use this command:
^XA^CI28^FT50,200^A#N,25,25,E:TT0003M_.TTF^PA1,1,1,1^FH^FD fff شامل الضريبة المضافة^FS^XZ
see the link here

Related

Zebra printer ZT610 doesn't print polish signs while ZTC 110 does

I am trying to print polish signs with font Verdana ( contains polish signs). The problem is that on the printer ZTC 110 code :
^XA
^FS
^CWZ,E:VERDANAB.FNT^FS
^FT100,100^FH^FD żółć
^XZ
works perfectly fine and polish signs are printed , while on the new printer ZT610 polish letters are missing (font was downloaded properly with .TTF format). All I can see in a place of sign is a blank space. When I m using zebra designer 2 polish letters are printed, they also are printed when I add command ^CI28 to the code ( used ^FH^FD here and special utf 8 code for polish signs),
^XA
^CI28
^FS
^CWZ,E:VERDANAB.TTF^FS
^FT100,100^FH^FD _C5_BC_C3_B3_C5_82_C4_87_C5_B9 ( żółć // here is the blank space )
^XZ
but it worked on previous printer without doing those things. Drivers were installed properly, fonts were installed properly, any ideas why is it happening?

need to print greek characters from zpl ii commands using a zebra printer

i have problem printing greek characters to a Zebra GC420 desktop printer. My code is:
$printarr[] = '^XA^CWZ,E:TT0003M_.FNT^FS^XZ^XA^FWN^FO70,50^A0,30,25^FH^FD'.labels_utf8_parse($name).'^FS^FO70,90^BY2^B3,,100^FD' . $node->field_o['und'][0]['value'] . '^FS^XZ';
What am i doing wrong? Instead of greek letters i get crosses. The strange part is that in another area of the code,the below code prints correctly greek characters:
$toprint = '^XA^CWZ,E:TT0003M_.FNT^FS^XZ^XA^FWR';
What should i do, how should i proceed to see what is the problem and how could i solve it?
You need to set the character encoding to UTF-8 using ^CI28. Put it near the top of the format, for example, after the ^XA^FWN.

How can I print a subscript like E_{n} with ZPL II?

I want to send a String to the Zebra printer in which I have e.g. the energy E_{N} printed whereas N must be a subscript of E. I can send strings to the printer which are in a normal format (e.g. 'bla=7'), but I have no idea how to include this subscript. Up to now I have strings like '^FDbla^FS'
I searched for the problem but could only find a solution for fixed problems like ^2, which were solved with a special character. There was no general solution.
The way I solved this was to strip out the subscripts and print them on the next half-line down.
^XA
^FT78,76^A0N,28,28^FH_^FDH PO ^FS
^FT78,90^A0N,28,28^FH_^FD 3 4^FS
^XZ

printing backslash AND unicode characters in one field

let's say I want to print a backslash and the pound symbol on a label: \£
I cant. I can only print either the backslash or the pound symbol, but the other one will render incorrectly.
This will print correctly the pound symbol, but will print a cent symbol instead of the backslash:
^XA
^CI28
^FO^AT^FH^FD_c2_a3^FS
^XZ
And this will print correctly the backslash, but not the pound symbol:
^XA
^CI13
^FO^AT^FH^FD_c2_a3^FS
^XZ
Do you know a way to combine these two in one single field ?
Thanks
Use the Field Hex feature:
^XA
^FO10,10^A0,40,40^FH_^FDEuro Symbol/_15/^FS
^XZ
As per ZPL script documents, they mentioned "You can mix character sets on a label." using ^CI command.
But there is no example scripts are available to mix character sets, Instead of that the example scripts are just explaining "how to remap the characters".
Also the document has clearly mentioned that If you want to print backslash, you should use ^CI13(^CI13 must be selected to print a backslash (\)). But If we use ^CI13, Latin characters are not printing properly which expects ^CI28.
So I'm not sure if it's possible to print both Latin characters and backslash (\) in same label.

How to escape caret symbol in ZPL2

Does anybody know how to escape the caret symbol (^), which ZPL2 / zebra printers recognize as a control character for commands, to print this character as a text onto the zpl2 label?
Maybe I'm blind, but I could not find this info in the official zpl2 programming guide.
Use the Field Hex command. ^FH
^XA
^FO100,100
^AD^FH
^FDCaret _5E^FS
^XZ
Answer lifted from the ZPL guide page 186:
https://www.zebra.com/content/dam/zebra/manuals/en-us/software/zpl-zbi2-pm-en.pdf

Resources