Bugs item #2971600, was opened at 2010-03-16 22:21
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=297160…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: sectionencode incorrectly encoding
Initial Comment:
>> 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'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=297160…