Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Locale settings question
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Mon Feb 15, 2010 6:23 pm    Post subject: Locale settings question Reply with quote

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
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Mon Feb 15, 2010 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Mon Feb 15, 2010 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Tue Feb 16, 2010 5:38 pm    Post subject: Reply with quote

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 :D .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
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Tue Feb 16, 2010 6:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Tue Feb 16, 2010 6:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Tue Feb 16, 2010 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Tue Feb 16, 2010 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Tue Feb 16, 2010 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Wed Feb 17, 2010 6:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum