zpl 2 is not printing turkish characters


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.

Anonymous (not verified)
Hi Mehmet,You are not

Hi Mehmet,

You are not specifying the font to use correctly in ZPL:  

You also should consider using UTF-8 encoding.

Robin

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


mehmet fatih
Hi Robin,Thann you for your

Hi Robin,

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

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments