I have an Android app and I'm trying to print some texts with it that contain non-latin characters.
I'm using this code to send ESC t n
command to the printer:
byte[] buf = new byte[]{0x1B, 0x74, (byte)2}; // 2 is the codetable for PC850: Multilingual
this.mBaseOutputStream.write(buf);
Then, I try to print my code like this:
this.mBaseOutputStream.write("Лорем ăîîîîîîă".getBytes("cp850"));
But all I get for the non-latin characters are weird symbols. So what am I doing wrong?