Regional characters and terminal

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Regional characters and terminal

Postby Benzi Junior on Tue Jan 15, 2013 4:53 am

I installed Maya last fall with Icelandic as my install language and it worked fine up until last week when Terminal stopped recognizing the Icelandic special characters such as þ æ ð and the accents ' and " and since a lot of directories have those characters in them I can't really navigate with terminal and certain programs don't open files in those directories since they don't recognize it's existance does anyone know how to get these characters back into terminal
Benzi Junior
Level 1
Level 1
 
Posts: 8
Joined: Thu Aug 16, 2012 8:53 pm

Linux Mint is funded by ads and donations.
 

Re: Regional characters and terminal

Postby BozoDel on Mon Jan 21, 2013 8:53 pm

I just installed Nadia and I'm having the same issues (the only difference being that the language is Brazilian Portuguese).

In this thread, somebody complains of the same problem. Then one user said:

xenopeek wrote:This will happen if your LANG environment variable isn't set. You can check with:
Code: Select all
env | grep ^LANG=

It should say something similar to:
Code: Select all
LANG=en_US.UTF-8


When I use that command, I get:

Code: Select all
LANG=pt_BR.UTF-8


Which means it should be showing special characters, but it isn't. Any ideas?
BozoDel
Level 1
Level 1
 
Posts: 23
Joined: Sun Apr 01, 2012 3:08 pm

Re: Regional characters and terminal

Postby BozoDel on Mon Jan 21, 2013 9:41 pm

I went into Language Support, changed it to English, applied it system-wide, and rebooted. Stuff is still in Portugues and I still get
Code: Select all
LANG=pt_BR.UTF-8
BozoDel
Level 1
Level 1
 
Posts: 23
Joined: Sun Apr 01, 2012 3:08 pm

Re: Regional characters and terminal

Postby bjornmu on Tue Jan 22, 2013 2:35 am

Are those þ and ð in file names UTF-8 or 8-bit ISO-8859-1? In any case, if you need to enter those names in the terminal, replace the special character with ? and it should work, even as arguments to programs. Or use TAB for file name completion, that ought to work too.

FWIW, I had trouble with printing text in ISO-8859-1 and solved that my installing "good old" xterm and using that instead of the more modern terminal.
User avatar
bjornmu
Level 3
Level 3
 
Posts: 154
Joined: Wed Dec 19, 2012 2:50 am
Location: Trondheim, Norway

Re: Regional characters and terminal

Postby BozoDel on Tue Jan 22, 2013 9:24 am

Replacing a special character with ? works (though just typing the correct character works too, even if it shows as ?).

But xterm and uxterm did no good. I think "the hole is further down"...
BozoDel
Level 1
Level 1
 
Posts: 23
Joined: Sun Apr 01, 2012 3:08 pm

Re: Regional characters and terminal

Postby BozoDel on Tue Jan 22, 2013 10:03 am

When using a variety of commands, I get
Code: Select all
Gtk-WARNING **: Locale not supported by C library.
   Using the fallback 'C' locale.

I think it has to do with the problem.
BozoDel
Level 1
Level 1
 
Posts: 23
Joined: Sun Apr 01, 2012 3:08 pm

SOLVED

Postby BozoDel on Tue Jan 22, 2013 5:24 pm

Found a solution here.

I opened /etc/default, opened the terminal in that folder and typed
Code: Select all
sudo gedit locale
to edit "locale".

Then I erased everything in there and replaced it with
Code: Select all
LC_ALL="en_US.UTF-8"
and rebooted. That did the trick.

I believe that the code for Icelandic would be "is_IS.UTF-8". Did that solve your problem, Benzi Junior?
BozoDel
Level 1
Level 1
 
Posts: 23
Joined: Sun Apr 01, 2012 3:08 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: cybercloud, Google [Bot], ktheking and 36 guests