Page 1 of 1

Problems with "Umlaute"

Posted: Fri May 18, 2007 1:49 pm
by Taram
When I updated my team data I had problems with the "Umlaute"
e.g. Bayern München. So I had to change xml-Data in .bygfoot/definitions/teams/

So I wrote a small usefull shell-script with following content:
#!/bin/sh
# wandelt die Umlaute um /change the "Umlaute"
for i in $@
do
cat $i |
sed -e "1,$ s/é/é/g"|
sed -e "1,$ s/ü/ü/g" |
sed -e "1,$ s/Ãœ/Ü/g" |
sed -e "1,$ s/ä/ä/g" |
sed -e "1,$ s/Ä/Ä/g" |
sed -e "1,$ s/ö/ö/g" |
sed -e "1,$ s/Ö/Ö/g" |
sed -e "1,$ s/ß/ß/g" > $i
done

After saving this shell-script under the name "umlaute". I did on the shell:
$> chmod +x umlaute

Then I used the script in my current home directory:
$> umlaute .bygfoot/definitions/teams/*.xml

I hope this is a useful hint to fix this little problem!