android java using HPRT printer with ZPLPrinterHelper not working correctly when print UTF-8 character

33 views Asked by At

I'm currently working with SDK on java to connect with HPRT Prime but I cannot print UTF-8 charactor. Already try to search document but it always give me something else or it use the command code there is no specific explanation in the pdf file about how to set encode language with ^CI command. some work but some doesn't.

        zplPrinterHelper =  ZPLPrinterHelper.getZPL(thisCon);


    zplPrinterHelper.start();
//    zplPrinterHelper.LanguageEncode.getBytes(StandardCharsets.UTF_8);
    zplPrinterHelper.printData("^XA^CWZ,E:SOU000.TTF^FS^XZ \n" +
            "^XA \n" +
            "^CI28 \n" +
            "^FO110,150^AZN,50,50^FD a á ă ả ạ. ê ế é ể ệ ẹ. o ơ ở ò ờ ọ ợ ộ ổ . ^FS \n" +

            "^PQ1 \n" +
            "^XZ");

the result on internet all about using ZPL command and come from Zebra devices. the imgae below is the result when I print

enter image description here

0

There are 0 answers