[moin-user] moin-user Digest, Vol 35, Issue 2

mariusz sapinski mariusz.sapinski at gmail.com
Sat Jan 11 16:10:40 EST 2020


On Sat, Jan 11, 2020 at 6:00 PM <moin-user-request at python.org> wrote:

> Send moin-user mailing list submissions to
>         moin-user at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.python.org/mailman/listinfo/moin-user
> or, via email, send a message with subject or body 'help' to
>         moin-user-request at python.org
>
> You can reach the person managing the list at
>         moin-user-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of moin-user digest..."
>
>
> Today's Topics:
>
>    1. Re: export to html (Paul Boddie)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 11 Jan 2020 17:35:41 +0100
> From: Paul Boddie <paul at boddie.org.uk>
> To: moin-user at python.org
> Subject: Re: [moin-user] export to html
> Message-ID: <4889514.M4VKbbFhCB at jeremy>
> Content-Type: text/plain; charset="us-ascii"
>
> On Friday 10. January 2020 11.50.31 mariusz sapinski wrote:
> > Hello,
> >
> > I run a standalone wiki (moin 1.9.9) and I have just moved it to another
> > ubuntu computer. All looks fine except that the command:
> >
> > moin --config-dir=/home/me/wiki/config
> --wiki-url=localhost:8080/Machines/
> > export dump --page=HEST --target-dir=/home/me/HEST/html
> >
> > gives now this error:
>
> [...]
>
> >   File "/usr/lib/python2.7/dist-packages/MoinMoin/script/export/dump.py",
> > line 100, in _attachment
> >     script.log('Writing "%s" attachment "%s"...' % (pagename, filename))
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6:
> > ordinal not in range(128)
> >
> >   There seems to be nothing wrong on the page where the script stops. Do
> > you have any suggestions - what should I look at?
>
> Although the error occurs when dumping an attachment, it appears that the
> error actually occurs when writing to the activity log (which is probably
> just
> output to the screen).
>
>
The last page being exported does not even contain any attachment.



> I would guess here that the pagename is Unicode and cannot be converted to
> a
> string, which might be demanded when the text is written to the screen.
>
> What locale settings are you using? If you have LC_CTYPE as something like
> "en_GB.ASCII" then it is quite easy to get such errors when attempting to
> output Unicode.
>

Hm. My environmental variable
LANG is en-US.UTF-8
LC_CTYPE is empty
I have tried:
export LC_CTYPE=$LANG
but the error is still there.

Cheers,

   Mariusz




>
> Paul
>
> P.S. Another year begins with a reminder that I should perhaps get round
> to
> releasing my Moin parser and serialiser tools that dump wiki content in a
> slightly more reliable way than "moin export dump"...
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> moin-user mailing list
> moin-user at python.org
> https://mail.python.org/mailman/listinfo/moin-user
>
>
> ------------------------------
>
> End of moin-user Digest, Vol 35, Issue 2
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20200111/5de46849/attachment.html>


More information about the moin-user mailing list