django python collation error
问题 What is the reason for the following error? when i try to filter with: if MyObject.objects.filter(location = aDictionary['address']): where location is defined as: location = models.CharField(max_length=100, blank=True, default='') I get the following error when aDictionary['address'] contains a string with a non-alphanumeric character (for example Kīhei): File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaul terrorhandler raise errorclass, errorvalue _mysql