View Single Post
Posts: 20 | Thanked: 0 times | Joined on Oct 2009
#113
I think I find the root cause.

This code --> key = unicode(friend['name']).encode('trans')

lib/trans.py does not provide the encode behavior for Chinese character. So most Chinese is translated into the same ascii code. so overwrite.

So I just modify as "key = friend['name']" or key = friend['uid'] to avoid this. But it does not work for "auto match". You must do it by hand.

So unicode to ascii encode for Chinese is the root cause.