LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   accents in the shell (https://www.linuxquestions.org/questions/linux-newbie-8/accents-in-the-shell-788482/)

ccee 02-11-2010 11:00 AM

accents in the shell
 
Hi
I'm trying to archive a bunch of files originally written on several platforms and in several languages. I'm using the bash shell and the GNOME Terminal 2.28.1 .

I have a directory containing 2 files and depending on which command I use I get three possible representations of
the accent ä in the filename.

#ls
090812_Pr?sentationen.doc 090812_Pr??sentationen.doc
#ls | less
090812_Pr<84>sentationen.doc
090812_Pr<C3><A4>sentationen.doc
#md5sum *
35fdb2fbe70281078538da8108b2456b 090812_Präsentationen.doc
35fdb2fbe70281078538da8108b2456b 090812_Pr�sentationen.doc

#echo $LANG
UTF-8

Can anyone explain this? What should I use for a LANG variable that might fix this?

Thanks

bathory 02-11-2010 11:47 AM

UTF-8 is not a locale LANG variable. Run
Code:

locale -a
and select the one that matches your needs


All times are GMT -5. The time now is 04:04 PM.