Hi ;
There's probably a global way to this, but you can add the following
line locally before the first python line of your script (I have fr, put
your local equivalent instead) :
export LANG="fr_FR.UTF-8"
it *should* do the trick.
Wolfgang ten Weges / DarkoNeko
Le 24/09/2012 10:20, Hercule Hercule a écrit :
Hello,
I have some troubles with a script I run on hu.wikipedia.
I have created a script, which name is LienHu.sh and content is
#-*- coding: utf-8 -*-
#!/usr/bin/python
python /home/hercule/template.py "Ideig" "Ideig/Automatikus törlés"
-cat:"Lapok láthatatlanná vált ideig sablonnal" -summary:"Bot:
{{Ideig}} sablonhívás törlése a cikk létrehozása következtében"
-assubst -pt:0 -lang:hu -always
python /home/hercule/template.py "Linkiw" "Linkiw/Automatikus törlés"
-cat:"Lapok láthatatlanná vált linkiw sablonnal" -summary:"Bot:
{{Linkiw}} sablonhívás törlése a cikk létrehozása következtében"
-assubst -pt:0 -lang:hu -always
python /home/hercule/template.py "Piroslink" "Piroslink/Automatikus
lecserélés" -cat:"Lapok felesleges piroslink sablonnal"
-summary:"Bot:
{{Piroslink}} sablonhívás lecserélése a cikk létrehozása
következtében" -assubst -lang:hu -always
python /home/hercule/template.py "Piroslink*" "Piroslink*/Automatikus
lecserélés" -cat:"Lapok felesleges piroslink sablonnal"
-summary:"Bot:
{{Piroslink*}} sablonhívás lecserélése a cikk létrehozása
következtében" -assubst -lang:hu -always
This file is encoded in UTF-8
When I run the command line
./LienHu.sh in my folder I have a correct execution (see
http://hu.wikipedia.org/w/index.php?title=Szerkeszt%C5%91:Oliv0&diff=12…
)
But when I run it with cronie :
9 8 * * * newtask -p batch /home/hercule/batch/LienHu.sh
There are problems with text encoding (see
http://hu.wikipedia.org/w/index.php?title=Szerkeszt%C5%91:Oliv0&diff=12…
)
I need help to solve this file encoding problem.
Regards
Antoine alias Hercule
_______________________________________________
Toolserver-l mailing list (Toolserver-l(a)lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list:
https://wiki.toolserver.org/view/Mailing_list_etiquette