|
Shell won't recognise foreign characters
Hi everyone,
I'm having a nightmare trying to write a shell script that, among other things, changes to a directory that has foreign characters in its name.
From Ubuntu's terminal, I can type:
$ cd Ontology/Top/World/Français/
and it moves me to my Français directory without a problem.
In my shell script, however, when I have:
#!/bin/sh
LC_ALL="fr_FR.UTF-8"
dir="Ontology/Top/World/Français/"
# Move to the top level of the ontology
cd $dir
# Find all of the categories at the top level of the ontology
ls > directories.tmp
I get the error message:
cd: 8: can't cd to Ontology/Top/World/Fran�ais/
Why won't my script let me use the ç character when I can do it without a problem from the terminal?
Help please!
|