Unicode/UTF-8 decoding



Below are sometext I extracted from a mySQL database. How can I decode them so that I can read them in Unicode?
Thanks

Bill

------------

Virginia Hamilton Adair / Lâm Thị Mỹ Dạ
Lấp lánh hồn thơ Việt trên sân ga Tokyo chiều cuối năm

.



Relevant Pages

  • Re: Python 3.1.1 bytes decode with replace bug
    ... In the original example I decoded to UTF-8 and in this example the ... The problem in your original example, and in the current one, is not in decode(), but in encode, which is implicitly called by print, when needed to convert from Unicode to some byte format of the console. ... But since you're running in a debugger, there's an implicit print, which is converting unicode into whatever your default console encoding is. ...
    (comp.lang.python)
  • Re: Python 3.1.1 bytes decode with replace bug
    ... The problem in your original example, and in the current one, is not in decode(), but in encode, which is implicitly called by print, when needed to convert from Unicode to some byte format of the console. ... and converts *FROM* utf8 string to a unicode one. ... But since you're running in a debugger, there's an implicit print, which is converting unicode into whatever your default console encoding is. ...
    (comp.lang.python)
  • Re: help with unicode email parse
    ... UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 4: ... So "str"%not accept unicode, ...
    (comp.lang.python)
  • Re: getting rid of =?UTF-8?B?4oCU?=
    ... on the Unicode version of the "html source code". ... UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ...
    (comp.lang.python)
  • Unicode from Web to MySQL
    ... into a MySQL database, but I keep running into the ... various encoding problems with Unicode (that aren't ... Convert to unicode before UTF-8 ...
    (comp.lang.python)

Loading