Best way to convert string a to utf-*

Josiah Carlson jcarlson at nospam.uci.edu
Fri Mar 19 12:34:57 EST 2004


s = u"some unicode string"
utf_8_encoded = s.encode('utf-8')

Is this what you were looking for?

  - Josiah



More information about the Python-list mailing list