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