Android printing arabic using zebra printer imz320 shows as reversed character

java android zebra-printers zpl zpl-ii

802 просмотра

1 ответ

191 Репутация автора

here is the zpl code from android

 String zplcode="^XA^LRN^CI0^XZ\n" +
        "\n" +
        "^XA^CWZ,E:TT0003M_.FNT^FS^XZ\n" +
        "^XA\n" +
        "\n" +
        "^FO10,50^CI28^AZN,50,50^F16^FDZebra Technologies^FS\n" +
        "^FO10,150^CI28^AZN,50,100^F16^FDUNICODE^FS\n" +
        "^FO020,260^CI28^AZN,50,40^F16^FDSwiss 721 Arabic: زيبرة  تكنوليجيز اوربا المحدودة^FS\n" +
        "^PQ1\n" +
        "^XZ";
  mmOutputStream.write(message.getBytes());

the result is reversed arabic characters any suggestion ? thanks in advance enter image description here

Автор: Ahmad Nasser Источник Размещён: 18.07.2016 07:47

Ответы (1)


2 плюса

191 Репутация автора

The problem was solved by including this line in the ZPL code:

^PA1,1,1,1^FS ^FX Enables Advanced Text ^FS
 String zplcode="^XA^LRN^CI0^XZ\n" +
    "\n" +
    "^XA^CWZ,E:TT0003M_.FNT^FS^XZ\n" +
    "^XA\n" +
    "\n" +
      "^PA1,1,1,1^FS ^FX Enables Advanced Text ^FS"+
    "^FO10,50^CI28^AZN,50,50^F16^FDZebra Technologies^FS\n" +
    "^FO10,150^CI28^AZN,50,100^F16^FDUNICODE^FS\n" +
    "^FO020,260^CI28^AZN,50,40^F16^FDSwiss 721 Arabic: زيبرة  تكنوليجيز اوربا المحدودة^FS\n" +
    "^PQ1\n" +
    "^XZ";
mmOutputStream.write(message.getBytes());
Автор: Ahmad Nasser Размещён: 22.07.2016 04:20
Вопросы из категории :
32x32