how to use unicode?

gfu gfu at public.nn.gx.cn
Mon Jan 27 05:32:05 CET 2003


hello:
	how to use unicode to show chinese? 
	run python.exe in w2k,Python 2.2.2:
	>>> u'行都'
	 u'\xcb\xc6\xcd\xf8\xd2\xb3'

	run IDLE in w2k,Python 2.2.2:
	>>> '行都'
	UnicodeError: ASCII encoding error: ordinal not in range(128)
	
	the "行都" is a chinese.







More information about the Python-list mailing list