title: Convert an int value to unicode
body: <p>I am using pyserial and need to send some values less than 255. If I send the int itself the the ascii value of the int gets sent. So now I am converting the int into a unicode value and sending it through the serial port. </p>
  
  <pre><code>unichr(numlessthan255);
  
  However it throws this error:
  'ascii' codec can't encode character u'\x9a' in position 24: ordinal not in range(128)
  </code></pre>
  
  <p>Whats the best way to convert an int to unicode?</p>