问题
I'm using Intermec android SDK to print to intermec printers: Intermec Printer SDK The problem that I faced that i can't print arabic text i'm using Intermec PR3 model. I have no idea, Please help me?
This is the code snippet:
lp.setBold(true);
lp.setDoubleWide(false);
lp.setDoubleHigh(false);
lp.write("بسم الله الرحمن الرحيم");
lp.setDoubleWide(false);
lp.setDoubleHigh(false);
lp.newLine(2);
回答1:
Finally i solved arabic text problem as the following by using arabicIntermec lib:
Arabic864 arabic864 = new Arabic864();
byte[] arabicTXT = arabic864.Convert("بسم الله الرحمن الرحيم", false);
lp.write(arabicTXT);
Github link: IntermecPrinter-Arabic Text
来源:https://stackoverflow.com/questions/46390480/intermec-pr3-printer-to-print-from-android-app-using-intermec-sdk