as far as i know

>>> u'中国'.encode('utf-8')
'\xe4\xb8\xad\xe5\x9b\xbd'

so,'\xe4\xb8\xad\xe5\x9b\xbd'  is the  utf-8  of  '中国'

>>> u'中国'.encode('gbk')
'\xd6\xd0\xb9\xfa'
so,'\xd6\xd0\xb9\xfa' is the  utf-8  of  '中国'

>>> u'中国'
u'\u4e2d\u56fd'

what is the meaning of u'\u4e2d\u56fd'?
u'\u4e2d\u56fd'  =  \x4e2d\x56fd  ??
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to