title: How to convert symbols into their respective unicode representation using python3?
body: <p>I want to convert devanagri script characters such as 'अ' into its unicode representation <code>\u0905</code>. 
  Earlier in python2.7 I was using <code>each_character.encode("unicode_escape")</code> where <code>each_character</code> refered to the devanagri script characters.
  But lately I have started working on python3 and when I run the above snippet I get the following error?</p>
  
  <p><code>expected str instance, bytes found</code></p>
  
  <p>Can anybody suggest a way to convert all the characters into their unicode representation. I am working on a devanagri OCR and I need the Unicode representations in order to pass them as ground truths.</p>