Skip to content

Instantly share code, notes, and snippets.

@amir-qayyum-khan
Created September 16, 2015 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amir-qayyum-khan/5fba27592c8020d5f7f8 to your computer and use it in GitHub Desktop.
Save amir-qayyum-khan/5fba27592c8020d5f7f8 to your computer and use it in GitHub Desktop.
haystack issue
self = <haystack.fields.CharField object at 0x7f1653f39590>
value = '\xe2\x80\xa6'
def convert(self, value):
if value is None:
return None
> return six.text_type(value)
E UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment