需要示例 Android 代码才能使用蓝牙打印机以泰米尔语进行打印。 我正在使用以下代码,但它仅打印数字和英文字符:( ..打印机在尝试打印泰米尔字符时提供空白空间..任何新想法将不胜感激..
mbtOutputStream = mmSocket.getOutputStream();
mbtOutputStream.write(Command);
String sendingmessage = "டெஸ்ட் கிரெடிட் பில்";
byte[] send = sendingmessage.getBytes();
mbtOutputStream.write(send);
mbtOutputStream.write(FEED_LINE);
mbtOutputStream.flush();
thread.sleep(20);
mbtOutputStream.write(as);
sendingmessage = " To Retailer:";
send = sendingmessage.getBytes();
mbtOutputStream.write(send);
mbtOutputStream.flush();
mbtOutputStream.write(FEED_LINE);
thread.sleep(20);
sendingmessage = " No.25/6, டெக்னாலஜி fund";
send = sendingmessage.getBytes();
mbtOutputStream.write(send);
mbtOutputStream.flush();
mbtOutputStream.write(FEED_LINE);
thread.sleep(20);
任何人请告诉我如何输入泰米尔字符在打印机中打印...
最佳答案
尝试byte[] send = Charset.forName("UTF-8").encode(sendingMessage)
关于java - 在 Android 蓝牙打印机中以泰米尔语打印,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19832860/