Page 1 of 1

EE-Characters diacritics

Posted: 31 Oct 2013, 03:42
by flimflam
Hello, can i change East European characters to be viewed in some setting when using PUTTY and Midnight Commander?
For example: N??u??n?? = Náučné


Is this problem on the side of B3 or my computer?

Re: EE-Characters diacritics

Posted: 31 Oct 2013, 03:50
by Ubi

Re: EE-Characters diacritics

Posted: 31 Oct 2013, 04:05
by flimflam
Than it looks like....

Re: EE-Characters diacritics

Posted: 31 Oct 2013, 04:55
by Ubi
yeah, but you may have bothered to check if those special characters were working.

Re: EE-Characters diacritics

Posted: 31 Oct 2013, 05:04
by flimflam
And how to check?

Maybe this is the problem:

Code: Select all

root@b3:~# locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
In /etc/default/locale ....there is nothing

Re: EE-Characters diacritics

Posted: 31 Oct 2013, 07:30
by Ubi
well, why not go the exact same folder as the original post and check if it works?? :roll: :roll: :roll:

Re: EE-Characters diacritics

Posted: 31 Oct 2013, 08:04
by flimflam
It is the same as before ...

Maybe something have to be changed on locale.

Re: EE-Characters diacritics

Posted: 31 Oct 2013, 09:59
by Ubi
I'm going to give up this thread. :|

Re: EE-Characters diacritics

Posted: 31 Oct 2013, 12:36
by Gordon
flimflam wrote:And how to check?

Maybe this is the problem:

Code: Select all

root@b3:~# locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
It is. Those entries should contain a valid locale, e.g. "en_US.UTF-8". I actually found that when connecting from a Windows machine with Putty, I get the same listing that you posted. However when connecting from my linux desktop the entries do contain the correct values. Very weird.

Try this:

Code: Select all

export LC_CTYPE="en_US.UTF-8"
That should be sufficient to fix the on screen characters.

Re: EE-Characters diacritics

Posted: 01 Nov 2013, 03:07
by flimflam
Thanx Gordon this helped, but in locale it stays only for this one and only session. When i logout and login again....the same as before!

Code: Select all

flim@b3:~$ locale
LANG=
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
I am connecting from W7 laptop, and maybe in this way the problem could be. When i used your export line all worked perfect. By new putty session everything the same as before. When i type locale ... POSIX is again on all positions. So for me is clear now that on B3 side is some problem.

Re: EE-Characters diacritics

Posted: 01 Nov 2013, 05:37
by Gordon
That is correct. To make it stick you should add the export(s) to your profile, which is in .bashrc

Note: as a minimum you'll probably want to set the value for LANG as well. And of course if you want to use a different locale than US English you should set that one instead (e.g. "sk_SK.UTF-8")

SOLVED: EE-Characters diacritics

Posted: 01 Nov 2013, 17:51
by flimflam
Thanx a lot :D

So to view right diacritics in own language ( SK )...When using W7 and PUTTY. Putty is set to UTF-8 and Consolas/Clear Type.

I had to add in: my_username/.bashrc and .profile

these three lines

Code: Select all

export LC_ALL=sk_SK.UTF-8
export LANG=sk_SK.UTF-8
export LANGUAGE=sk_SK.UTF-8
and to make these changes active in the current shell, source the .bashrc:

Code: Select all

source ~/.bashrc
Now no problem.