Thank you for your responed fast, Adrain.

Yes, you are right, When i use:
s = u"中国"
d = categorylangs.Categorylang(categorylang = s.encode('utf-8'))
d.save()
It is ok! when i saw through DB. but. when I use

d = categorylangs.get_list(categorylang__contains = s.encode('utf-8'))
print d.

it does not show correct. !

I think MayBe is my sys encode is not correct? I saw
sys.getdefaultencoding is ascii

How can i change sys encode to 'utf-8'
When i use sys.setdefaultencode will error. 

thanks.

Reply via email to