I already tried to add
export LANG=fr_FR.UTF-8 but I then have an alert : LANG=fr_FR.UTF-8 is not an identifier LANG=fr_FR.UTF-8 at the top of the shell don't change anything.
What I don't understand is that the problem only comes with SGE submit. And the command 'locale' in the shell shows en_US.UTF-8 for every property
I will try LANG=fr_FR.UTF-8 python /home/hercule/template.py this evening
Le 23 mai 2013 09:16, Merlijn van Deen valhallasw@arctus.nl a écrit :
Hi Hercule,
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
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
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