Hi Hercule,
If you have saved the file in the utf-8 encoding (which the edit
On 23 May 2013 00:38, Hercule Hercule <hercule.wikipedia@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
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
_______________________________________________
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette