Hi Hercule,
On 23 May 2013 00:38, Hercule Hercule <hercule.wikipedia(a)gmail.com> wrote:
python /home/hercule/template.py "Lien"
"Lien/Conversion automatique"
-cat:"Page utilisant Lien pour un article existant" -summary:"[Bot] :
transformation de liens avec le modèle {{Lien}} en lien interne, suite à la
création de l'article correspondant" -assubst -pt:0 -always
mutt -s "Fin de LienFr" hercule < /home/hercule/logs/LienFr.log
If you have saved the file in the utf-8 encoding (which the edit
summary suggests), try using (on one line)
LANG=en_GB.UTF-8 python /home/hercule/template.py ...
or (on two lines)
export LANG=en_GB.UTF-8
python /home/hercule/template.py ...
Basically, you have to tell pywikipedia which encoding you have used
for the shell arguments - in your case UTF-8. Otherwise it will use
latin-1 as default, which results in the mojibake you saw.
Merlijn