Python console session
01 Sep 2009
 
 
 
1
2
3
4
5
6
7
8
>>> s = 'Ïàðêîâèé Ïðîâ'
>>> s.decode('utf8')
u'\xcf\xe0\xf0\xea\xee\xe2\xe8\xe9 \xcf\xf0\xee\xe2'
>>> print '\xcf\xe0\xf0\xea\xee\xe2\xe8\xe9 \xcf\xf0\xee\xe2'.decode('cp1251')
--> print('\xcf\xe0\xf0\xea\xee\xe2\xe8\xe9 \xcf\xf0\xee\xe2'.decode('cp1251'))
Парковий Пров