Mega Code Archive

 
Categories / Python Tutorial / String
 

Encode(utf-16)

uniStr = u"Ni\u00F1o" print uniStr.encode('utf-16')