title: exec a string encoded in utf-8 in Python 2.7
body: <p>I'm trying to use the exec function to run python code that I read out of a file that I know is encoded in utf-8. I've tried using string encode and decode, but it deletes the " and ' characters. How do I convert it to ascii for the purposes of exec without losing characters?</p>
  
  <pre><code>command = os.popen("tesseract img/" + image + " stdout","r")
  code = command.readline()
  print(code)
  exec("# coding=utf-8\n" + code)
  </code></pre>