You are not logged in.

#1 2011-03-20 20:03:32

gee
Member
Registered: 2006-11-29
Posts: 313

[SOLVED]Bad encoded files

Hi,

I would like to be able to see French and Japanese characters in a terminal but without changing the system's language.

locale-gen                                                                                                                                           
Generating locales...                                                                                                                                                                                             
  en_US.UTF-8... done                                                                                                                                                                                             
  en_US.ISO-8859-1... done                                                                                                                                                                                         
  fr_FR.UTF-8... done                                                                                                                                                                                             
  fr_FR.ISO-8859-15@euro... done                                                                                                                                                                                   
  ja_JP.EUC-JP... done                                                                                                                                                                                             
  ja_JP.UTF-8... done                                                                                                                                                                                             
Generation complete.

Now if in my rc.conf, I have LOCALE=en_US.UTF-8, I will not be able to see some of these special characters (though I thought that unicode was unicode in the end?).
If I switch to fr_FR.UTF-8 I can see the French special characters, but it also changes the system's language which I do not want to.

What can I do?

Thanks

Last edited by gee (2011-03-28 02:07:27)

Offline

#2 2011-03-21 19:28:53

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED]Bad encoded files

My system's locale is en_US.UTF-8, but I can see chinese/japanese and french characters in the terminal (Xfce's terminal.) I've just created a file named "çédille" in /tmp without any problem (please note that it's not a French word smile).

Offline

#3 2011-03-21 19:41:24

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [SOLVED]Bad encoded files

Same here. Touched a file called 日本語. I'm using de_DE.UTF-8.

Online

#4 2011-03-22 03:36:03

gee
Member
Registered: 2006-11-29
Posts: 313

Re: [SOLVED]Bad encoded files

Just tried the touch 日本語 and it worked as well.
Not sure what that means then.
Are these other files somehow "badly" encoded?

Offline

#5 2011-03-22 10:00:33

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED]Bad encoded files

Any example?

Offline

#6 2011-03-22 12:12:55

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED]Bad encoded files

If they are files you got off the net or an old hd, then they might be encoded using iso8859-1 or similar.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2011-03-27 21:11:49

gee
Member
Registered: 2006-11-29
Posts: 313

Re: [SOLVED]Bad encoded files

If that's the case, is the only solution to rename them?
Or is there anything else I can do?

Thanks!

Offline

#8 2011-03-27 22:33:49

gee
Member
Registered: 2006-11-29
Posts: 313

Re: [SOLVED]Bad encoded files

convmv does the trick.

Thanks!

Offline

#9 2011-03-27 22:47:05

CPU Gastronomy
Member
From: Québec, Canada
Registered: 2010-12-29
Posts: 69

Re: [SOLVED]Bad encoded files

Mark the thread [SOLVED] please.

Offline

Board footer

Powered by FluxBB