$pythonPython2.7.6|Anaconda1.8.0(x86_64)|(default,Jan102014,11:23:15)[GCC4.0.1(AppleInc.build5493)]ondarwinType"help","copyright","credits"or"license"formoreinformation.>>>importurllib>>>urllib.urlencode({'a':chr(400)})Traceback(mostrecentcalllast):File"<stdin>",line1,in<module>ValueError:chr()argnotinrange(256)>>>urllib.urlencode({'a':u"\u0400"})Traceback(mostrecentcalllast):File"<stdin>",line1,in<module>File"/Users/antkong/anaconda/lib/python2.7/urllib.py",line1329,inurlencodev=quote_plus(str(v))UnicodeEncodeError:'ascii'codeccan't encode character u'\u0400' in position 0: ordinal not in range(128)