Bugs item #1988771, was opened at 2008-06-09 12:17 Message generated for change (Comment added) made by wikipedian You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1988771...
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: other Group: None
Status: Closed Resolution: Fixed
Priority: 6 Private: No Submitted By: siebrand (siebrand) Assigned to: Nobody/Anonymous (nobody) Summary: Encoding issues with Esperanto
Initial Comment: Output:
siebrand@v05-s341:~/nl$ python nowcommons.py -lang:eo -autonomous -replacealways -replaceloose WARNING: Configuration variable 'language' is defined but unknown. Misspelled? Checked for running processes. 1 processes currently running, including the current process. Getting references to [[ablono:Nun en komunejo]] NOTE: You have new messages on wikipedia:eo
Dosiero:LieioMapoAmel.png <<<
Traceback (most recent call last): File "nowcommons.py", line 231, in <module> main() File "nowcommons.py", line 227, in main bot.run() File "nowcommons.py", line 222, in run wikipedia.output(u'%s' % e) UnicodeEncodeError: 'ascii' codec can't encode character u'\u011d' in position 35: ordinal not in range(128)
This is about the page: http://eo.wikipedia.org/wiki/Dosiero:LiegxioMapoFleron.png
Esperanto uses LanguageEo.php with some iconv magic. (http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/classes/Lan...) .
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date: 2008-08-21 12:13
Message: Logged In: YES user_id=880694 Originator: NO
This is fixed now that I reverted this:
r5305 has changed Page::title() in wikipedia.py ("Page.title(): Esperanto decoding, fix bug 1425206 and patch 1880140")
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs) Date: 2008-06-23 23:44
Message: Logged In: YES user_id=1738850 Originator: NO
With this chante, bug [ 1879122 ] Double redirect fixes not coding special characters in EO.WP reappears. A solution has to be found that fixes both bugs.
----------------------------------------------------------------------
Comment By: siebrand (siebrand) Date: 2008-06-12 10:39
Message: Logged In: YES user_id=1107255 Originator: YES
Ouch. No. It works if I remove those 4 lines, indeed. Now why are they in there! :)
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto) Date: 2008-06-12 10:23
Message: Logged In: YES user_id=181280 Originator: NO
I don't fixed the bug in SVN. Have you edited wikipedia.py in Page::title() as described?
----------------------------------------------------------------------
Comment By: siebrand (siebrand) Date: 2008-06-12 10:16
Message: Logged In: YES user_id=1107255 Originator: YES
It appears there is another issue related/behind this:
python nowcommons.py -autonomous -replaceloose -replacealways -lang:eo WARNING: Configuration variable 'language' is defined but unknown. Misspelled? Checked for running processes. 1 processes currently running, including the current process. Getting references to [[ablono:Nun en komunejo]]
Dosiero:LieioMapoAmel.png <<<
Image file URL for [[eo:Dosiero:LieioMapoAmel.png]] not found.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto) Date: 2008-06-12 08:38
Message: Logged In: YES user_id=181280 Originator: NO
import wikipedia s=wikipedia.Site('eo') p=wikipedia.ImagePage(s, 'Dosiero:LiegxioMapoAmel.png') p.title()
u'Dosiero:Lie\u011dioMapoAmel.png'
p.get()
[...] wikipedia.NoPage: (wikipedia:eo, u'[[eo:Dosiero:Lie\u011dioMapoAmel.png]]')
r5305 has changed Page::title() in wikipedia.py ("Page.title(): Esperanto decoding, fix bug 1425206 and patch 1880140") [*],
If I remove:
if self.site().lang == 'eo': title = decodeEsperantoX(title)
pages are found and the nowcommons.py seems full working. But maybe there are problems with redirect.py.
[*] [ 1880140 ] Decode Esperanto titles http://sourceforge.net/tracker/index.php?func=detail&aid=1880140&gro... [ 1425206 ] Esperanto X-Convention and interwiki http://sourceforge.net/tracker/index.php?func=detail&aid=1425206&gro...
----------------------------------------------------------------------
Comment By: Marc-Etienne Vargenau (vargenau) Date: 2008-06-11 10:25
Message: Logged In: YES user_id=1118700 Originator: NO
See also bug 1988290
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1988771...
pywikipedia-l@lists.wikimedia.org