How print a qrcode with stores a json on Zebra printer using ZPL commands

// Expert user has replied.
M Marco Torchio 2 months ago
77 1 0

Hi all,


 

 

I have to print QRCode wich stores a json on a Zebra ZD421 Printer using ZPL commands.


 

I use these commands:


 

^XA
^FO200,10
^BQN,2,3
^FDMM,A{'custom':'03','mdbschemauff':'WJMERUFF00224','tipocomm':'C','codice':'RAPE','descrizione':'RAPE','prezzo':0.00000,'um':'KG','tara':'0','codiva':'1','perciva':0.00000,'provenienza':'','codic_anag':'BIAS.GENO', 'ragion_soc':'BGEN','nummovap':0,'numrigaap':0,'descrlotto':'727','variante':'','prvendita':0.00000,'cauzione':0.00000}^FS
^PQ1
^XZ
 


 

But reading the printed qrcode I have:
0CUSTOM0:0030MDBSCHEMAUFF0:0WJMERUFF002240TIPOCOMM0:0C0CODICE0:0RAPE0DESCRIZIONE0:0RAPE0PREZZO0:0.00000UM0:0KG0TARA0:000CODIVA0:010PERCIVA0:0.00000PROVENIENZA0:00CODIC ANAG0:0BIAS.GENO00RAGION SOC0:0BGEN0NUMMOVAP0:0NUMRIGAAP0:0DESCRLOTTO0:07270VARIANTE0:00PRVENDITA0:0.00000CAUZIONE0:0.00000

the {} and ' are printed as 0, the underscore is not printed.


 

Do you have any ideas or suggestions ?
Thanks,
Marco

Please register or login to post a reply

1 Replies

S Steven Si

Use the following ZPL to encode the {, _ and etc., in QR code.

^XA
^FO200,10
^BQN,2,3
^FDMA,{'custom':'03','mdbschemauff':'WJMERUFF00224','tipocomm':'C','codice':'RAPE','descrizione':'RAPE','prezzo':0.00000,'um':'KG','tara':'0','codiva':'1','perciva':0.00000,'provenienza':'','codic_anag':'BIAS.GENO', 'ragion_soc':'BGEN','nummovap':0,'numrigaap':0,'descrlotto':'727','variante':'','prvendita':0.00000,'cauzione':0.00000}^FS
^PQ1
^XZ
CONTACT
Can’t find what you’re looking for?