Bugs item #1988771, was opened at 2008-06-09 12:17 Message generated for change (Comment added) made by siebrand 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: Open Resolution: None 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:LieĝioMapoAmel.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: 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:LieĝioMapoAmel.png <<<
Image file URL for [[eo:Dosiero:LieĝioMapoAmel.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...