>> Alchimista <[email protected]> wrote:
> --===============3939809116357976354==
> Content-Type: multipart/alternative; boundary=047d7b10c899326f7d04bcce2a8b
>
> --047d7b10c899326f7d04bcce2a8b
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
> I'm having an UnicodeEncodeError, something like: "UnicodeEncodeError:
> 'ascii' codec can't encode characters in position 28-29: ordinal not in
> range(128)" on print or wikipedia.output() statments when running scripts
> submitted on submit@ with qcronsub. Some time ago I've asked for help on
> irc, and was told that was an undocumented error, and pointed a solution,
> because has far as i remember, my LC_ALL wasn't defined. I now have set upt
> qcronsub to run the following sh script:
>
> #! /bin/sh
>
> LC_ALL="en_US.UTF-8" /usr/bin/python /home/alchimista/aleph/avbot.py
> -botnick:'Aleph Bot'  -ownernick:Alchimista -newbie:100 > /dev/null
>
> It worked for some weeks, but now is back again. How can i fix it?

Can you try this:

PYTHONIOENCODING=utf_8 /usr/bin/python /home/alchimista/aleph/avbot.py  
-botnick:'Aleph Bot'  -ownernick:Alchimista -newbie:100 > /dev/null

//Saper


_______________________________________________
Toolserver-l mailing list ([email protected])
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: 
https://wiki.toolserver.org/view/Mailing_list_etiquette

Reply via email to