[Moin-user] Failed to run moinmoin 1.9.2 with strange 'utf8' codec can't decode byte 0xc3 error

Jiawei Zhang jiawei.1214 at gmail.com
Fri Jun 11 21:11:55 EDT 2010


Hello Thomas,

Thanks for your information.

I'm sure there are not any modifications to the "po" files in
/usr/local/lib/python2.6/site-packages/MoinMoin/i18n. The only files I
modified are "config/wikiconfig.py" and "server/moin.wsgi". At the same time
I can run ./wikiserver.py from unpacked Moin 1.9.2 directory without
problems. What's wrong?

BTW, My browser language is "en-us,zh-cn,zh"

Thanks Again!
Jiawei



2010/6/11 Thomas Waldmann <tw-public at gmx.de>

>
> > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x]   File
> > "/usr/local/lib/python2.6/site-package
> > s/MoinMoin/i18n/__init__.py", line 91, in i18n_init
> > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x]
> > _languages[language][key] = value.decode(               encoding)
> > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x]   File
> > "/usr/local/lib/python2.6/encodings/ut               f_8.py", line 16,
> > in decode
> > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x]     return
> > codecs.utf_8_decode(input, errors,                True)
> > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x]
> > UnicodeDecodeError: 'utf8' codec can't decode                byte 0xc3
> > in position 5: unexpected end of data
>
> That means that one or some of the translation files has non-utf8 or
> corrupt content in it. Did you modify them?
>
> Maybe find out which files are affected and fix them.
>
> See http://master19.moinmo.in/MoinI18n/... for the master copies of
> those files (they get put into MoinMoin/i18n/ by a script). Both zh and
> zh-tw could need a bit more love.
>
> (maybe also try to reproduce by just downloading moin 1.9.2 or 1.9.3
> soon, unpacking it and running ./wikiserver.py from the unpacked
> directory)
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20100612/6855a3c8/attachment.html>


More information about the Moin-user mailing list