Storing Non-ASCII Characters : Unicode « String « Python Tutorial






s = u'La Pe\xf1a'                         
print s                                        
print s.encode('latin-1')








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