Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to replicate the issue**:
from pywikibot.tools.chars import url2string
url2string('El%20Ni%C3%B1o', ['ascii', 'utf-8'])
`**What happens?**:
Traceback (most recent call last):
File "<pyshell#82>", line 1, in <module>
url2string('/El%20Ni%C3%B1o/', ['ascii', 'utf-8'])
File "D:\pwb\GIT\core\pywikibot\tools\chars.py", line 130, in url2string
return t.decode(enc)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6:
ordinal not in range(128)
**What should have happened instead?**:
`'El NiƱo'` should be given
TASK DETAIL
https://phabricator.wikimedia.org/T335224
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, PotsdamLamb, Jyoo1011, JohnsonLee01,
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki,
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]