How to convert a string from CP-1251 to UTF-8?,d.decode('cp1251').encode('utf8')