How to display Chinese in a list retrieved from database via python
Jeroen Ruigrok van der Werven
asmodai at in-nomine.org
Thu Dec 25 04:49:11 EST 2008
-On [20081225 08:30], zxo102 (zxo102 at gmail.com) wrote:
> Anybody knows how to solve this problem?
You are assigning/pushing out Python byte sequences, not Unicode. Look at
u'' string variables, x.encode() and x.decode() to help you.
It's widely documented on the Internet, a quick Python Unicode (with encode
or decode) should get you there.
--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
Knowledge is soon changed, then lost in the mist, an echo half-heard...
More information about the Python-list
mailing list