我使用的是Intermec PB51打印机。使用相同的代码,但它没有以正确的方式打印阿拉伯文本。它在区分阿拉伯文本字符。有没有人能帮我用LinePrinter代码在Intermec PB51中打印阿拉伯语文本?
Arabic864 arabic864 = new Arabic864();
byte[] arabicTXT = arabic864.Convert("بسم الله الرحمن الرحيم", false);
mLinePrinter.write(arabicTXT);
mLinePrinter.newLine(1);
mLinePrinter.writeLine("Intermec Printer Test");发布于 2020-05-16 12:32:14
您必须首先发送用于阿拉伯语打印的代码,因此您的代码必须如下所示:
byte[] arabicFont = new byte[]{0x1b, 0x77, 0x46};
mLinePrinter.write(arabicFont);
Arabic864 arabic864 = new Arabic864();
byte[] arabicTXT = arabic864.Convert("بسم الله الرحمن الرحيم", false);
mLinePrinter.write(arabicTXT);
mLinePrinter.newLine(1);https://stackoverflow.com/questions/58832161
复制相似问题