Python encoding utf-8 string
<p>I have a unicode string <code>Ð£ÑÐ»ÑÐ³Ð¸ Ð¿Ð¾ Ð´Ð¾ÑÑÐ°Ð²ÐºÐµ</code> and can't encode it. Well, I can with online decoder - it gives me source encoding: UTF-8 and wanted string 'Услуги по доставке'. But how can i do it with Python 2.7? I tried <code>encode('utf-8')</code> and <code>decode('utf-8')</code>, but they don't work.</p>

<p>I got this string in xml response:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;root&gt;&lt;Tariff&gt;&lt;TariffType&gt;Ð£ÑÐ»ÑÐ³Ð¸ Ð¿Ð¾ Ð´Ð¾ÑÑÐ°Ð²ÐºÐµ&lt;/TariffType&gt;&lt;Total_Dost&gt;1398.3&lt;/Total_Dost&gt;&lt;T‌​otal_DopUsl&gt;.00&lt;/Tot‌​al_DopUsl&gt;&lt;Insurance‌​&gt;.00&lt;/Insurance&gt;&lt;wor‌​th&gt;.00&lt;/worth&gt;&lt;DP&gt;1-‌​7&lt;/DP&gt;&lt;/Tariff&gt;&lt;/roo‌​t&gt;
</code></pre>

<p>This is my code:</p>

<pre><code>tree = ElementTree.fromstring(r.text.encode('utf-8')). 
for node in tree: 
   d = dict() 
   for sub_node in node: 
      d.update({sub_node.tag: sub_node.text.encode("UTF-8")})
</code></pre>