-
Notifications
You must be signed in to change notification settings - Fork 6
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
api cannot handle unicode #3
Comments
As far as I can tell, there's no way to query for articles with titles like this. Here's the entry returned by the database for the general 50-limit query:
But passing that same page_title page yields no results: http://tools.wmflabs.org/eranbot/plagiabot/api.py?action=suspected_diffs&lang=en&page_title=Ch\xc3\xa2teau_Laroque |
What happens is the following:
|
I'm not sure how tied to pywikibot this still is, but if the api portion (if not all of it) could be switched to python3, that'd probably involve a lot less unicode pain in the long run. |
This is causing issues with the integration into @earwig's Copyvios Detector: earwig/copyvios#25 |
Solved using ugly decode. Using python3 is a good idea, but the instance in labs uses python2 and I'm too lazy to move the instance to use python3. |
Cheers! |
Is this ticket resolved now? |
yes |
For example: http://tools.wmflabs.org/eranbot/plagiabot/api.py?action=suspected_diffs&page_title=%27Ch%C3%A2teau%20Laroque%27
The text was updated successfully, but these errors were encountered: