Mega Code Archive

 
Categories / Python Tutorial / String
 

Effects of Setting the Default Encoding

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