Russian encode : Text Encode « Language Basics « Python






Russian encode

Russian encode


title = u'\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435' 

print title                                       

convertedtitle = title.encode('koi8-r')           

print convertedtitle                              

           
       








Related examples in the same category

1.Storing Non-ASCII Characters
2.Effects of Setting the Default Encoding