Printing arabic strings with numeric chars right to left

C Cem Tuna 3 years 7 months ago
249 2 0

Hi dear developer friends,
I have an issue with printing arabic strings with in numeric chars by right to left like below.
اونيو دراج فراولة 14جم 30*16
I can print this string as right to left with zpl FPR command.
When i use fpr command every char in this string is reversing. But this time, numbers reverse too.
For example when i print it, i see 41 instead 14.
How can i print numeric chars like we see, not reversed?

Please Register or Login to post a reply

2 Replies

D Dmitry Prokhorov

Hello Cem,

To print bidirectional texts it looks like you need to use ^CI command together with ^PA command.
https://www.zebra.com/content/dam/zebra/manuals/printers/common/program…

Also, I unsure you need to use ^FPR command.

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

A AHMET DAREN

Hi Dmitry Prokhorov We are in the same team with Cem Tuna. Our ZPL code is as follows:
The thick and the big part of our article is written

^XA^FS^POI^PW800^MNN^LL١١٣٥^LRN^CI0^CW1,E:ARAB_CGT.FNT^FS^FPR^FO440,80,0^CI28^A1N,23,23^FB180,1,0,L,0^FH^FD_CA_E2_D1_EA_D1_20_CD_C7_E4_C9_20_C7_E4_E5_CE_D2_E8_E6^FS^FO25,175,0^CI28^A1N,20,20^FB120,1,0,L,0^FDReport Date^FS^FO150,175,0^CI28^A1N,20,20^FB245,1,0,L,0^FD28.01.2019 14:01^FS^FO15,160^GB360,45,1^FS^FPR^FO750,175,0^CI28^A1N,23,23^FB120,1,0,L,0^FH^FD_CA_C7_D1_EA_CE_20_C7_E4_CA_E2_D1_EA_D1^FS^FPH^FO330,175,0^CI28^A1N,20,20^FB245,1,0,R,0^FD28.01.2019 14:01^FS^FO405,160^GB360,45,1^FS^FO20,255,0^CI28^A1N,19,19^FB80,2,0,L,0^FDCode^FS^FO270,255,0^CI28^A1N,19,19^FB184,2,0,L,0^FDProduct^FS^FO480,255,0^CI28^A1N,19,19^FB70,2,0,R,0^FDAmount^FS^FO650,255,0^CI28^A1N,19,19^FB70,2,0,R,0^FDSum^FS^FPR^FO95,285,0^CI28^A1N,23,23^FB80,2,0,C,0^FH^FD_E2_C7_E6_E8_E6^FS^FPR^FO410,285,0^CI28^A1N,23,23^FB184,2,0,C,0^FH^FD_C7_D3_E5_20_C7_E4_E5_E6_CA_CC^FS^FPR^FO575,285,0^CI28^A1N,23,23^FB60,2,0,L,0^FH^FD_E3_E5_EA_C9^FS^FPR^FO740,285,0^CI28^A1N,23,23^FB90,2,0,L,0^FH^FD_C7_E4_E5_C8_E4_DA^FS^FPH^FO10,325,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_31_30_30_30_30_30_38^FS^FPR^FO360,325,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C8_D3_E3_E8_EA_CA_20_C8_C7_E4_D2_C8_CF_C9_20^FS^FO415,325,0^CI28^A1N,19,19^FB150,2,0,R,0^FD4.00^FS^FO650,325,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,355,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_31_30_32_39_30_36^FS^FPR^FO360,355,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C8_EA_E3_E9_20_D5_DA_EA_D1_20_D4_E3_E8_E4_C7^FS^FO415,355,0^CI28^A1N,19,19^FB150,2,0,R,0^FD43.00^FS^FO650,355,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,385,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_31_31_31_33_38^FS^FPR^FO360,385,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C7_E8_E4_E3_D1_20_C8_D3_E3_E8_EA_CA_20_D4_C7^FS^FO415,385,0^CI28^A1N,19,19^FB150,2,0,R,0^FD155.00^FS^FO650,385,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,415,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_31_31_33_39^FS^FPR^FO360,415,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C7_E8_E4_E3_D1_20_C8_D3_E3_E8_EA_CA_20_D4_C7^FS^FO415,415,0^CI28^A1N,19,19^FB150,2,0,R,0^FD11.00^FS^FO650,415,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,445,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_31_35_33_37_30_37_53^FS^FPR^FO360,445,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_CC_E8_CF_EA_E1_C7_20_D9_E4_C8_E7_20_E3_D1_C7^FS^FO415,445,0^CI28^A1N,19,19^FB150,2,0,R,0^FD6.00^FS^FO650,445,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,475,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_31_35_33_37_30_38_53^FS^FPR^FO360,475,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_CC_E8_CF_EA_E1_C7_20_D9_E4_C8_E7_20_CF_C7_D1^FS^FO415,475,0^CI28^A1N,19,19^FB150,2,0,R,0^FD8.00^FS^FO650,475,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,505,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_31_35_33_38_30_36_53^FS^FPR^FO360,505,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_CC_E8_CF_EA_E1_C7_20_D9_E4_C8_E7_20_C8_C7_E4^FS^FO415,505,0^CI28^A1N,19,19^FB150,2,0,R,0^FD131.00^FS^FO650,505,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,535,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_32_32_32_34_31^FS^FPR^FO360,535,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C8_EA_E3_E9_20_E3_C8_20_E3_EA_E3_20_E3_C7_E3^FS^FO415,535,0^CI28^A1N,19,19^FB150,2,0,R,0^FD84.50^FS^FO650,535,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,565,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_35_31_31_31_33_30_38^FS^FPR^FO360,565,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C7_E8_E4_E3_D1_20_C8_D3_E3_E8_CA_20_D4_C7_E9^FS^FO415,565,0^CI28^A1N,19,19^FB150,2,0,R,0^FD11.00^FS^FO650,565,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,595,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_35_32_30_37_32_30_32^FS^FPR^FO360,595,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_D4_E8_E3_E8_D3_C7_E6_CF_E8_EA_D4_20_32_32_2E^FS^FO415,595,0^CI28^A1N,19,19^FB150,2,0,R,0^FD5.50^FS^FO650,595,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,625,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_35_36_32_35^FS^FPR^FO360,625,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_E3_C8_E3_20_E3_D1_C7_E3_D1_20_33_30_CC_E5_20^FS^FO415,625,0^CI28^A1N,19,19^FB150,2,0,R,0^FD106.00^FS^FO650,625,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,655,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_38_31_36_30_38_53^FS^FPR^FO360,655,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C7_E8_E4_C7_E4_C7_20_C8_C7_D1_20_E3_EA_E3_20^FS^FO415,655,0^CI28^A1N,19,19^FB150,2,0,R,0^FD7.00^FS^FO650,655,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,685,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_38_35_30_30_36^FS^FPR^FO360,685,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C7_E8_E4_E3_D1_20_D3_E5_C7_D1_CA_20_E3_E8_D1^FS^FO415,685,0^CI28^A1N,19,19^FB150,2,0,R,0^FD11.00^FS^FO650,685,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPH^FO10,715,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_43_47_56_32_30_31_38^FS^FPR^FO360,715,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_CC_E8_CF_EA_E1_C7_20_E3_E8_E4_D1^FS^FO415,715,0^CI28^A1N,19,19^FB150,2,0,R,0^FD45.00^FS^FO650,715,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_E3_D1^FS^FPH^FO10,745,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_53_54_44_43_41_32_30_31_37^FS^FPR^FO360,745,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD_C7_E8_E4_E3_D1_20_E3_E8_E4_D1_20_C7_CF_20_C7^FS^FO415,745,0^CI28^A1N,19,19^FB150,2,0,R,0^FD45.00^FS^FO650,745,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_D9_E4^FS^FPR^FO100,775,0^CI28^A1N,19,19^FB100,2,0,L,0^FH^FD_C7_E4_E8_D2_E6_20_C7_E4_E3_E4_EA^FS^FPH^FO150,775,0^CI28^A1N,19,19^FB300^PA1,1,1,1^FH^FD^FS^FO415,775,0^CI28^A1N,19,19^FB150,2,0,R,0^FD22858.47^FS^FO650,775,0^CI28^A1N,19,19^FB70,2,0,R,0^FH^FD_4B_47^FS^FO410,865,0^CI28^A1N,19,19^FB80,2,0,L,0^FD0.0^FS^FPR^FO460,865,0^CI28^A1N,19,19^FB500,2,0,L,0^FH^FD_E2_D7^FS^FO320,865,0^CI28^A1N,19,19^FB80,2,0,L,0^FD45.0^FS^FPR^FO370,865,0^CI28^A1N,19,19^FB500,2,0,L,0^FH^FD_E3_D1^FS^FO230,865,0^CI28^A1N,19,19^FB80,2,0,L,0^FD628.0^FS^FPR^FO280,865,0^CI28^A1N,19,19^FB500,2,0,L,0^FH^FD_D9_E4^FS^FO140,865,0^CI28^A1N,19,19^FB80,2,0,L,0^FD0.0^FS^FPH^FO190,865,0^CI28^A1N,19,19^FB500,2,0,L,0^FH^FD_42_47^FS^FO350,٩٥٥,0^CI28^A1N,20,20^FB120,1,0,L,0^FD٧٣٣٨٫٧٥^FS^FPR^FO٥٣٠,٩٥٥,0^CI28^A1N,20,20^FB245,2,0,L,0^FH^FD_C7_E4_E5_CC_E5_E8_D9^FS^FO350,985,0^CI28^A1N,20,20^FB120,1,0,L,0^FD3^FS^FPR^FO530,985,0^CI28^A1N,20,20^FB245,2,0,L,0^FH^FD_CD_D3_E6_20_D5_E2_D1^FS^FO270,110^GB180,1,1,B,0^FS^FO5,315^GB780,1,1,B,0^FS^XZ

I used ^CI command together with ^PA command.. did not print as we wanted
We are using Hexadecimal code. ^ FH problem may be caused by this?
Thank you for your help in advance.

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