Effects of Setting the Default Encoding : Text Encode « Language Basics « Python






Effects of Setting the Default Encoding

import sys 

sys.getdefaultencoding()                          

s = u'La Pe\xf1a' 

print s                                           
           
       








Related examples in the same category

1.Storing Non-ASCII Characters
2.Russian encodeRussian encode