View previous topic :: View next topic |
Author |
Message |
zoe Guru
Joined: 10 Jun 2007 Posts: 324 Location: Greece
|
Posted: Mon Feb 15, 2010 6:23 pm Post subject: Locale settings question |
|
|
Hi everyone
One question that i still can't get an answer. I use English for my system and changed some locale to Greek in order to see some of my files and stuff.Even though i 've fixed already my locale i can read and save texts in Greek but if i download something in my language i get Chinese characters and can't find a way to fix this.Anyone with similar problem that found a solution?it's quite annoying cause it's consuming a lot of time to delete or move stuff with Chinese characters
Thanks in advance |
|
Back to top |
|
|
aceFruchtsaft Guru
Joined: 16 May 2004 Posts: 438 Location: Vienna, Austria
|
Posted: Mon Feb 15, 2010 8:14 pm Post subject: |
|
|
Does this only concern the contents of files you download from the internet? Then I would assume that this problem arises because whatever you open the file with assumes that it's a different encoding (the system default, e.g. utf-8) than it actually is. For example, if you download some text file with greek letters in it and it's encoded in ISO-8859-7, while your system encoding is utf-8 and a text editor such as kate assumes that it's utf8, then you will get character garbage.
What is your output of the locale command?
BTW, did you literally mean Chinese characters (this would be strange), or just some random character garbage? |
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Mon Feb 15, 2010 8:15 pm Post subject: |
|
|
Did u try to set up a Greek unicode consolefont + unicode locale? _________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
zoe Guru
Joined: 10 Jun 2007 Posts: 324 Location: Greece
|
Posted: Tue Feb 16, 2010 5:38 pm Post subject: |
|
|
Hello and thanks for the replies
This is not the case, i won't have a problem with a text(or pps or doc) dowloded from internet, i can see the title and content in Greek and have no problem with utf8 or iso.I'll give an example in order to help you understand. when i download for example a torrent for a greek movie,i can see the .torrent with greek letters but when i actually download the movie in my torrents folder i get Ξ£ΞΞ‘ΞΞ¦ΞΞ£ Ξ ΞΞΞ§ΞΞΞΞ¦ΞΞΞΞ£.avi !And yes i mean random characters .I give the locale settings in my system
Quote: | LANG=en_GB.UTF-8
LC_CTYPE=el_GR
LC_NUMERIC=el_GR
LC_TIME=en_US
LC_COLLATE=el_GR
LC_MONETARY=el_GR
LC_MESSAGES=en_US
LC_PAPER=el_GR
LC_NAME=el_GR
LC_ADDRESS=el_GR
LC_TELEPHONE=el_GR
LC_MEASUREMENT=el_GR
LC_IDENTIFICATION=el_GR
LC_ALL=
|
I can also write in Greek language so i it's a correct set up of unicode condole font and locale.if i have any error just correct me, no problem
I really can't understand why i have this problem,also i have this problem with my music but i can't find a solution.Please if you have any ideas just post them |
|
Back to top |
|
|
Rexilion Veteran
Joined: 17 Mar 2009 Posts: 1044
|
Posted: Tue Feb 16, 2010 6:03 pm Post subject: |
|
|
Perhaps you need to change
LANG=en_GB.UTF-8
and
LC_ALL=
to
LANG=el_GR
and
LC_ALL=el_GR
Plus, does
/etc/locale.gen
Contain any el_GR related entries?
Like:
el_GR.UTF-8 UTF-8
el_GR ISO-8859-7
If not, add both and do:
locale-gen |
|
Back to top |
|
|
zoe Guru
Joined: 10 Jun 2007 Posts: 324 Location: Greece
|
Posted: Tue Feb 16, 2010 6:40 pm Post subject: |
|
|
Hi
my /etc/locale-gen looks like this
Quote: |
en_US ISO-8859-1
en_US.UTF-8 UTF-8
el_GR ISO-8859-7
el_GR.UTF-8 UTF-8
|
so i have to change the two fields that you suggest in order to test this and post back
thanks again
EDIT:I will only change LANG and not LC_ALL , cause i don't want to overwrite my previous settings in my locale and i'll post back |
|
Back to top |
|
|
Rexilion Veteran
Joined: 17 Mar 2009 Posts: 1044
|
Posted: Tue Feb 16, 2010 7:16 pm Post subject: |
|
|
What I also did is, is putting these environmental settings in /etc/env.d/ and not in .bashrc. Why? Well sometimes, that userspecific stuff seems to be overridden by some graphical environments.... (unless they come from /etc/env.d/ of course)... |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Tue Feb 16, 2010 7:29 pm Post subject: |
|
|
You should configure everything to use UTF-8. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
aceFruchtsaft Guru
Joined: 16 May 2004 Posts: 438 Location: Vienna, Austria
|
Posted: Tue Feb 16, 2010 8:31 pm Post subject: |
|
|
yngwin wrote: | You should configure everything to use UTF-8. |
It think so too.
I also use English as the interface language, but use German and Slovak characters all over the place without problems. My locale is
Code: |
$ locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=de_AT.UTF-8
LC_TIME=de_AT.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=de_AT.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=de_AT.UTF-8
LC_NAME=de_AT.UTF-8
LC_ADDRESS=de_AT.UTF-8
LC_TELEPHONE=de_AT.UTF-8
LC_MEASUREMENT=de_AT.UTF-8
LC_IDENTIFICATION=de_AT.UTF-8
LC_ALL=
|
Have a look at the Gentoo UTF-8 guide:
http://www.gentoo.org/doc/en/utf-8.xml |
|
Back to top |
|
|
zoe Guru
Joined: 10 Jun 2007 Posts: 324 Location: Greece
|
Posted: Wed Feb 17, 2010 6:32 pm Post subject: |
|
|
Thanks everyone
As i said in my previous post this is my locale and i think it's the same as aceFruchtsaft's except the LC_TYPE.
Quote: | LANG=en_GB.UTF-8
LC_CTYPE=el_GR
LC_NUMERIC=el_GR
LC_TIME=en_US
LC_COLLATE=el_GR
LC_MONETARY=el_GR
LC_MESSAGES=en_US
LC_PAPER=el_GR
LC_NAME=el_GR
LC_ADDRESS=el_GR
LC_TELEPHONE=el_GR
LC_MEASUREMENT=el_GR
LC_IDENTIFICATION=el_GR
LC_ALL=
|
But still i don't understand why i can see a pps or doc and can't see an avi with Greek characters.I'll try to follow the guide about UTF and post back
thanks again everyone |
|
Back to top |
|
|
|