how to show Chinese Characters in the value set of a dictionary

Christos Georgiou tzot at sil-tec.gr
Fri Jan 13 10:21:45 EST 2006


On 1 Jan 2006 07:35:31 -0800, rumours say that "zxo102" <zxo102 at gmail.com>
might have written:

>>>> dict.values()
>['\xd6\xd0\xb9\xfa\xb6\xfe', '\xd6\xd0\xb9\xfa\xd2\xbb']
>
>Since the result of dict.values will be inserted into web pages and
>handled by javascript there, I want to show Chinese Characters
>in the list directly like this,
>
>['???','???']

Diez's instructions were useful to you, however for quick previewing check
this recipe, it might be useful:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/439148
-- 
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians



More information about the Python-list mailing list