title: How to solve UnicodeDecodeError in Python 3.6?
body: <p>I am switched from Python 2.7 to Python 3.6.</p>
  
  <p>I have scripts that deal with some non-English content.</p>
  
  <p>I usually run scripts via Cron and also in Terminal.</p>
  
  <p>I had UnicodeDecodeError in my Python 2.7 scripts and I solved by this.</p>
  
  <pre><code># encoding=utf8  
  import sys  
  
  reload(sys)  
  sys.setdefaultencoding('utf8')
  </code></pre>
  
  <p>Now in Python 3.6, it doesnt work. I have print statements like <code>print("Here %s" % (myvar))</code> and it throws error. I can solve this issue by replacing it to <code>myvar.encode("utf-8")</code> but I don't want to write with each print statement.</p>
  
  <p>I did <code>PYTHONIOENCODING=utf-8</code> in my terminal and I have still that issue.</p>
  
  <p>Is there a cleaner way to solve <code>UnicodeDecodeError</code> issue in Python 3.6?</p>
  
  <p>is there any way to tell Python3 to print everything in utf-8? just like I did in Python2?</p>