[Pywikipedia-bugs] [ pywikipediabot-Support Requests-3428321 ] add_text.py has problems in windows CMD
SourceForge.net
noreply at sourceforge.net
Tue Oct 25 17:36:52 UTC 2011
Support Requests item #3428321, was opened at 2011-10-25 18:33
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3428321&group_id=93107
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: None
Group: None
>Status: Pending
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: add_text.py has problems in windows CMD
Initial Comment:
add_text.py arguments (-text -exception -summary -newimages ) doesn't support percentage characters specially for CMD in windows.
for example this example doesn't work correctly in windows CMD
python add_text.py -links%3A%22%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%22 -text%3A%7B%7B%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%7D%7D
is it possible to change their Unicode setting like pagegenerator.py arguments?
p.s. for percentage characters i use http://meyerweb.com/eric/tools/dencoder/
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-10-25 19:36
Message:
You shouldn't encode the :, only the page title. So the correct command
would be:
python add_text.py
-links:%22%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%22
-text:%7B%7B%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%7D%7D
which should work.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3428321&group_id=93107
More information about the Pywikipedia-bugs
mailing list