-
Notifications
You must be signed in to change notification settings - Fork 123
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
get_coauthors() throwing UnicodeEncodeError #33
Comments
Can you provide a short script that causes this error? |
Yes - though I've just left town for the weekend. Will get to this Monday. |
I'm currently being throttled for too many requests so I can't test this unfortunately, though something like this was causing the exception for me before:
|
I wonder it that is a python 2 issue. This worked fine for me with python3. |
This is quite likely, as I'm using Python 2, and I believe there are some differences in how strings are handled between the two. |
Indeed there are differences. But the fix is simple (though hard to find): Simply make the concatenated name of the coauthors a unicode object. |
When trying to get coauthors from an author, I receive the following exception:
(I couldn't wait so I fixed this locally on my machine by simply encoding the given name and surname as UTF-8 at line 232)
The text was updated successfully, but these errors were encountered: