[Pywikipedia-bugs] [Maniphest] [Commented On] T60574: unicodeDecodeError in url2unicode()

2018-06-03 Thread Dalba
Dalba added a comment. @Dvorapa, You should pass Unicode literals to Link, not byte-string. Try u'Historia de Cerdeña' instead of 'Historia de Cerdeña' or from __future__ import unicode_literals in your script.TASK DETAILhttps://phabricator.wikimedia.org/T60574EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T60574: unicodeDecodeError in url2unicode()

2018-06-03 Thread Dvorapa
Dvorapa added a comment. There must be some issue when handling Unicode links in Python 2 somewhere in Link.initTASK DETAILhttps://phabricator.wikimedia.org/T60574EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DvorapaCc: Dvorapa, TerraCodes, Aklapper, XZise,

[Pywikipedia-bugs] [Maniphest] [Commented On] T60574: unicodeDecodeError in url2unicode()

2018-06-03 Thread Dvorapa
Dvorapa added a comment. On Python 2 I get much more simple error: $ python2 pwb.py shell >>> pywikibot.Link('Historia de Cerdeña') Traceback (most recent call last): File "", line 1, in File "/home/pavel/pywikibot-test/pywikibot/page.py", line 5476, in __init__ if u"|" in self._text: