zpl 2 is not printing turkish characters

m mehmet fatih 3 years 6 months ago
93 2 0

I need to print special Turkish characters with zpl 2 codes. I create my zpl String and send it to the print server. But Turkish Characters are not printed. My code is below. I added a font that has Turkish characters. In printed document it ignores characters prints TESTTEST. Do i need to look to encode my zpl string or what ?
zpl.append("^XA"); zpl.append("^MMT"); zpl.append("^PW812"); zpl.append("^LL0812"); zpl.append("^LS0"); zpl.append("^CI35"); zpl.append("^FT40,230^A0B,23,31^FH\\^FDTESTÖİÜŞıöüşçÇTEST^FS"); String zplString = zpl.toString();  Charset charSet = Charset.forName("ISO-8859-9"); byte[] ptext = zplString.getBytes(charSet); String value = new String(ptext, charSet);Thanks for your help.

Please Register or Login to post a reply

2 Replies

Y Yanis Dalabiras

Hi Mehmet,
You are not specifying the font to use correctly in ZPL:  
You also should consider using UTF-8 encoding.
Robin

m mehmet fatih

Hi Robin,

Thann you for your answer. According to your sample link, should I change the ^A0B tag to somthing else ?

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