how to use unicode?

gfu gfu at public.nn.gx.cn
Sun Jan 26 20:59:17 EST 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