需要使用蓝牙打印机以泰米尔语打印的示例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);
任何人请告诉我如何喂养泰米尔字母在打印机中打印...
答案 0 :(得分:0)
尝试byte[] send = Charset.forName("UTF-8").encode(sendingMessage)