Regional characters and terminal

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Benzi Junior

Regional characters and terminal

Post by Benzi Junior »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
BozoDel

Re: Regional characters and terminal

Post by BozoDel »

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

Re: Regional characters and terminal

Post by BozoDel »

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
User avatar
bjornmu
Level 3
Level 3
Posts: 189
Joined: Wed Dec 19, 2012 2:50 am
Location: Trondheim, Norway

Re: Regional characters and terminal

Post by bjornmu »

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.
BozoDel

Re: Regional characters and terminal

Post by BozoDel »

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

Re: Regional characters and terminal

Post by BozoDel »

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

SOLVED

Post by BozoDel »

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?
Locked

Return to “Beginner Questions”