Last modified: 2014-09-21 10:47:38 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1327/ Reported by: jandudik Created on: 2011-08-03 11:31:41 Subject: Problem with chinese character Original description: Bot removes interwiki, which have incorrect character at the end. But mediawiki translates this character correctly http://pl.wikipedia.org/w/index.php?title=Wios%C5%82onos\_ameryka%C5%84ski&action=historysubmit&diff=27500418&oldid=27491213
Is it still valid? I didn't try to reproduce it
Probably obsolete with Wikidata.
The problem bot edit is here: https://pl.wikipedia.org/w/index.php?title=Wios%C5%82onos_ameryka%C5%84ski&diff=prev&oldid=27482496 And the bot removed '[[zh:匙吻鲟]]' from '[[pl:Wiosłonos amerykański]]' with an edit summary of : (r2.5.2) (robot usuwa zh:匙吻鲟) It appears from the interwiki code that 'r2.5.2' is the python version. Was this 2011 edit done with compat or core?
Haven't read through the code yet, but the following seems to suggest that interwiki.py is likely to have the bug: >>> import pywikibot >>> pywikibot.Page(pywikibot.Site("zh", "wikipedia"), u"匙吻鲟").exists() False >>> pywikibot.Page(pywikibot.Site("zh", "wikipedia"), u"匙吻鱘").exists() True
> Was this 2011 edit done with compat or core? It is compat for that edit and the reason is that mw is able to redirect different spelling style whereas compat framework is not.
Would it be possible for Site.loadpageinfo() to make use of "converttitles" api parameter?
(In reply to zhuyifei1999 from comment #6) > Would it be possible for Site.loadpageinfo() to make use of "converttitles" > api parameter? That looks like a good approach. How will you determine if the wiki's content language supports variant conversion?
(In reply to John Mark Vandenberg from comment #7) > (In reply to zhuyifei1999 from comment #6) > > Would it be possible for Site.loadpageinfo() to make use of "converttitles" > > api parameter? > > That looks like a good approach. How will you determine if the wiki's > content language supports variant conversion? @liangent: ?
I guess always adding that does no harm?