title: How to fix "latin-1 codec can't encode characters in position" in requests
body: <p>I am having trouble with encoding in python 3.
  When I was testing on my PC I get no errors:</p>
  
  <pre><code>Python 3.7.3 (default, Jun 24 2019, 04:54:02) 
  [GCC 9.1.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import requests
  &gt;&gt;&gt; print(requests.get('https://www.kinopoisk.ru').text)
  
  everything good.
  </code></pre>
  
  <p>But when I ran this code on my VPS a have following error:</p>
  
  <pre><code>Python 3.7.3 (default, Apr  3 2019, 19:16:38) 
  [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  
  &gt;&gt;&gt; import requests
  &gt;&gt;&gt; print(requests.get('https://www.kinopoisk.ru').text) 
  
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  UnicodeEncodeError: 'latin-1' codec can't encode characters in position 393-401: ordinal not in range(256)
  </code></pre>
  
  <p>The python versions are the same. I don't know what is going on.</p>
  
  <p>How do I fix it?</p>