incorrect display of characters in a non-English locale

gosha

Well-Known Member
Oct 20, 2014
302
25
58
Russia
All my proxmox-nodes used non-English locale:

# locale
LANG=ru_RU.UTF-8
LANGUAGE=
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
...


In proxmox-web in some windows I see incorrect display of characters.
(see attached screenshots).


sreenshot.png

sreenshot2.png

How I can fix this? :confused:
 
Last edited:
Hi Gosha
We also use UTF-8 in the GUI html content so it should not be in theory a problem ( but that's the theory)

To narrow down the issue can you try these two things out:

if you enter "apt-cache show dmsetup" in a terminal, can you confirm that the russian description of the package is properly displayed ? ( i guess the content here is the field Description-en: from the apt package database.

If you select Russion language in the login window, do you see any improvement ?
 
Hi Gosha
We also use UTF-8 in the GUI html content so it should not be in theory a problem ( but that's the theory)

To narrow down the issue can you try these two things out:

if you enter "apt-cache show dmsetup" in a terminal, can you confirm that the russian description of the package is properly displayed ? ( i guess the content here is the field Description-en: from the apt package database.

Hi Manu!
The package description in Terminal program on my Mac via ssh to proxmox-nodes is properly for RU lang. (see picture)

pic1.png

in Console on Proxmox GUI this description - in English:

pic4.jpg


If you select Russion language in the login window, do you see any improvement ?

No improvements...


pic3.jpg

Best regards!
Gosha
 
Last edited:
OK Thanks
Now when you're logged inside the server, what is the output of
pvesh get nodes/localhost/apt/update ?
( via ssh and via the web shell)

Where did your set your default locale ? User environement (.bashrc and the like ) or /etc/default/locale ?

I think when you login from your OSX host, ssh will pass by default the LC_env from your the env where is running your ssh client.
But when you login root over the webconsole, .bashrc and /etc/default/locale are not used, which explains the default (C) locale and messages in english.
 
Last edited:
OK Thanks
Now when you're logged inside the server, what is the output of
pvesh get nodes/localhost/apt/update ?
( via ssh and via the web shell)

via ssh:

pic3.png

via web shell for RU lang GUI:

pic2.png

via web shell for EN lang GUI:

pic1.png


Where did your set your default locale ? User environement (.bashrc and the like ) or /etc/default/locale ?

I installed Proxmox VE 3.x via Debian install method (problem with incorrect characters was missing). After release 4.0 I updated my cluster to 4.0.
And locale was set during Debian installation. And user environment in /etc/default/locale:

pic4.png


I think when you login from your OSX host, ssh will pass by default the LC_env from your the env where is running your ssh client.
But when you login root over the webconsole, .bashrc and /etc/default/locale are not used, which explains the default (C) locale and messages in english.

May be...
Locale on my Mac:

Mac-mini:~ gosha$ locale
LANG="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_CTYPE="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_ALL=


--
Best regards!
Gosha
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!