Effects of Setting the Default Encoding : Unicode « String « Python Tutorial






import sys 
print sys.getdefaultencoding()                  
s = u'La Pe\xf1a' 
print s








5.39.Unicode
5.39.1.Unicode Strings
5.39.2.Storing Non-ASCII Characters
5.39.3.Effects of Setting the Default Encoding
5.39.4.Unicode to normal
5.39.5.Normal to Unicode