title: How to get rid of ascii encoding error in python
body: <pre><code>string = "Deepika Padukone, Esha Gupta or Yami Gautam - Who's looks hotter and sexier? Vote! - It's ... Deepika Padukone, Esha Gupta or Yami Gautam…. Deepika Padukone, Esha Gupta or Yami Gautam ... Tag: Deepika Padukone, Esha Gupta, Kalki Koechlin, Rang De Basanti, Soha Ali Khan, Yami  ... Amitabh Bachchan and Deepika Padukone to be seen in Shoojit Sircar's Piku ..."
  
  fp = open("test.txt", "w+");
  
  fp.write("%s" %string);
  </code></pre>
  
  <p>after running the above code I have got the following error. </p>
  
  <pre><code>File "encode_error.py", line 1
  
  SyntaxError: Non-ASCII character '\xe2' in file encode_error.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  </code></pre>