Last modified: 2014-06-05 20:10:20 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1147/ Reported by: Anonymous user Created on: 2010-03-16 22:21:02 Subject: sectionencode incorrectly encoding Original description: >>> wikipedia.sectionencode\(':/', 'utf-8'\) '.3A/' Which is incorrect as it is ":.2F" The correct code for sectionencode\(\) should be: return urllib.quote\(text.replace\(" ","\_"\).encode\(encoding\), safe=':'\).replace\("%","."\) Also, it would be nice if encoding defaulted here to 'utf-8'
Could you check if the bug is present in the rewrite branch?
sectionencode() has been removed from compat: https://www.mediawiki.org/wiki/Special:Code/pywikipedia/9494 ...and it never existed in core.