New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

EE-Characters diacritics

Got problems with your B2 or B3? Share and get helped!
Post Reply
flimflam
Posts: 41
Joined: 17 Jul 2013, 10:06
Location: Slovakia

EE-Characters diacritics

Post 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?
Attachments
MC.png
MC.png (63.84 KiB) Viewed 15541 times
Last edited by flimflam on 31 Oct 2013, 03:56, edited 1 time in total.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: EE-Characters diacritics

Post by Ubi »

flimflam
Posts: 41
Joined: 17 Jul 2013, 10:06
Location: Slovakia

Re: EE-Characters diacritics

Post by flimflam »

Than it looks like....
Attachments
MC2.png
MC2.png (55.42 KiB) Viewed 15539 times
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: EE-Characters diacritics

Post by Ubi »

yeah, but you may have bothered to check if those special characters were working.
flimflam
Posts: 41
Joined: 17 Jul 2013, 10:06
Location: Slovakia

Re: EE-Characters diacritics

Post 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
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: EE-Characters diacritics

Post by Ubi »

well, why not go the exact same folder as the original post and check if it works?? :roll: :roll: :roll:
flimflam
Posts: 41
Joined: 17 Jul 2013, 10:06
Location: Slovakia

Re: EE-Characters diacritics

Post by flimflam »

It is the same as before ...

Maybe something have to be changed on locale.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: EE-Characters diacritics

Post by Ubi »

I'm going to give up this thread. :|
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: EE-Characters diacritics

Post 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.
flimflam
Posts: 41
Joined: 17 Jul 2013, 10:06
Location: Slovakia

Re: EE-Characters diacritics

Post 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.
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: EE-Characters diacritics

Post 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")
flimflam
Posts: 41
Joined: 17 Jul 2013, 10:06
Location: Slovakia

SOLVED: EE-Characters diacritics

Post 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.
Attachments
MC3.png
MC3.png (69.25 KiB) Viewed 15447 times
Post Reply