<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 11, 2020 at 6:00 PM <<a href="mailto:moin-user-request@python.org">moin-user-request@python.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send moin-user mailing list submissions to<br>
        <a href="mailto:moin-user@python.org" target="_blank">moin-user@python.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mail.python.org/mailman/listinfo/moin-user" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/moin-user</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:moin-user-request@python.org" target="_blank">moin-user-request@python.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:moin-user-owner@python.org" target="_blank">moin-user-owner@python.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of moin-user digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: export to html (Paul Boddie)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 11 Jan 2020 17:35:41 +0100<br>
From: Paul Boddie <<a href="mailto:paul@boddie.org.uk" target="_blank">paul@boddie.org.uk</a>><br>
To: <a href="mailto:moin-user@python.org" target="_blank">moin-user@python.org</a><br>
Subject: Re: [moin-user] export to html<br>
Message-ID: <4889514.M4VKbbFhCB@jeremy><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
On Friday 10. January 2020 11.50.31 mariusz sapinski wrote:<br>
> Hello,<br>
> <br>
> I run a standalone wiki (moin 1.9.9) and I have just moved it to another<br>
> ubuntu computer. All looks fine except that the command:<br>
> <br>
> moin --config-dir=/home/me/wiki/config --wiki-url=localhost:8080/Machines/<br>
> export dump --page=HEST --target-dir=/home/me/HEST/html<br>
> <br>
> gives now this error:<br>
<br>
[...]<br>
<br>
>   File "/usr/lib/python2.7/dist-packages/MoinMoin/script/export/dump.py",<br>
> line 100, in _attachment<br>
>     script.log('Writing "%s" attachment "%s"...' % (pagename, filename))<br>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6:<br>
> ordinal not in range(128)<br>
> <br>
>   There seems to be nothing wrong on the page where the script stops. Do<br>
> you have any suggestions - what should I look at?<br>
<br>
Although the error occurs when dumping an attachment, it appears that the <br>
error actually occurs when writing to the activity log (which is probably just <br>
output to the screen).<br>
<br></blockquote><div><br></div><div>The last page being exported does not even contain any attachment.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I would guess here that the pagename is Unicode and cannot be converted to a <br>
string, which might be demanded when the text is written to the screen.<br>
<br>
What locale settings are you using? If you have LC_CTYPE as something like <br>
"en_GB.ASCII" then it is quite easy to get such errors when attempting to <br>
output Unicode.<br></blockquote><div><br></div><div>Hm. My environmental variable <br></div><div>LANG is en-US.UTF-8<br></div><div>LC_CTYPE is empty</div><div>I have tried:</div><div>export LC_CTYPE=$LANG</div><div>but the error is still there.<br></div><div><br></div><div>Cheers,</div><div><br></div><div>   Mariusz<br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Paul<br>
<br>
P.S. Another year begins with a reminder that I should perhaps get round to <br>
releasing my Moin parser and serialiser tools that dump wiki content in a <br>
slightly more reliable way than "moin export dump"...<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
moin-user mailing list<br>
<a href="mailto:moin-user@python.org" target="_blank">moin-user@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/moin-user" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/moin-user</a><br>
<br>
<br>
------------------------------<br>
<br>
End of moin-user Digest, Vol 35, Issue 2<br>
****************************************<br>
</blockquote></div></div>