title: Persist UTF-8 as Default Encoding
body: <p>I tried to persist UTF-8 as the default encoding in Python.</p>
  
  <p>I tried:</p>
  
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.getdefaultencoding()
  'ascii'
  </code></pre>
  
  <p>And I also tried:</p>
  
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; reload(sys)
  &lt;module 'sys' (built-in)&gt;
  &gt;&gt;&gt; sys.setdefaultencoding('UTF8')
  &gt;&gt;&gt; sys.getdefaultencoding()
  'UTF8'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>But after closing the session and opening a new session, the following was the result:</p>
  
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.getdefaultencoding()
  'ascii'
  </code></pre>
  
  <p><strong>How can I persist my changes?</strong> (I know that it's not always a good idea to change to UTF-8. It's in a Docker container of Python).</p>
  
  <p>I know it's possible. I saw someone who has UTF-8 as his default encoding (always).</p>