How to display Chinese in a list retrieved from database via python
zxo102 at gmail.com
Thu Dec 25 08:29:08 CET 2008
I retrieve some info in Chinese from postgresql and assign it to a
var info = ['\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4','\xd6\xd0\xce
But I want it to be
var info = ['中文','中文','中文']
former :['\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4'] can
not be displayed correctly when it is inserted into a html page. If
the list is var info = ['中文','中文','中文'] , then everything works
Anybody knows how to solve this problem?
Thanks in advance.
More information about the Python-list