2 Replies Latest reply on Nov 13, 2017 9:21 PM by mehmet fatih

    zpl 2 is not printing turkish characters

    mehmet fatih

      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.