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

2006-01-13 Thread Christos Georgiou
On 1 Jan 2006 07:35:31 -0800, rumours say that "zxo102" <[EMAIL PROTECTED]> 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 C

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

2006-01-03 Thread Donn Cave
In article <[EMAIL PROTECTED]>, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: ... > What put you off probably is the fact that in the interpreter, strings > are printed using their __repr__-method, that puts out those "funny" > hex-characters. But no need to worry there. Moreover, the "print" s

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

2006-01-01 Thread Diez B. Roggisch
zxo102 schrieb: > Hi there, > I have a dictionary with values of Chinses Characters. For > example, > > dict = {} dict['c1']="中国一" dict['c2']="中国二" dict.values() > > ['\xd6\xd0\xb9\xfa\xb6\xfe', '\xd6\xd0\xb9\xfa\xd2\xbb'] > > Since the result of dict.values will be insert

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

2006-01-01 Thread Nikos Kouremenos
On Sun, 01 Jan 2006 07:35:31 -0800, zxo102 wrote: > > Hi there, > I have a dictionary with values of Chinses Characters. For > example, > dict = {} dict['c1']="中国一" dict['c2']="中国二" dict.values() > ['\xd6\xd0\xb9\xfa\xb6\xfe', '\xd6\xd0\xb9\xfa\xd2\xbb'] > > Since the