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.
zpl 2 is not printing turkish characters |
2 Replies
Hi Mehmet,
You are not specifying the font to use correctly in ZPL:
You also should consider using UTF-8 encoding.
Robin
Hi Robin,
Thann you for your answer. According to your sample link, should I change the ^A0B tag to somthing else ?