Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if the string is not encoded in utf-8 #39

Open
SrujithPoondla opened this issue Jun 6, 2017 · 0 comments
Open

Error if the string is not encoded in utf-8 #39

SrujithPoondla opened this issue Jun 6, 2017 · 0 comments

Comments

@SrujithPoondla
Copy link
Contributor

The current code doesn't handle non unicode format strings. If the string is not encoded in utf-8 then it throws the UnicodeDecodeError.

Error:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd1 in position 8: invalid continuation byte

Dev Analysis:
String : "sharkey_„Žs cafe"
I used convert_to_unicode in utils.py to convert non unicode strings to unicode but still it was not able to parse the non unicode characters. At this moment we are ignoring the non unicode strings, but they need to be handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant