How to fix locale in Ubuntu (questions marks)

I have faced this problem when moved my account from one Ubuntu PC to another, so I think problem has been appeared due to the version conflict

The first result when I have typed locale was

LANG=en_US
LANGUAGE=
LC_CTYPE="en_US
LC_NUMERIC="en_US
LC_TIME="en_US
LC_COLLATE="en_US
LC_MONETARY="en_US
LC_MESSAGES="en_US
LC_PAPER="en_US
LC_NAME="en_US
LC_ADDRESS="en_US
LC_TELEPHONE="en_US
LC_MEASUREMENT="en_US
LC_IDENTIFICATION="en_US
LC_ALL=en_US

You have two way for fix locale issues.

First. Fix location for your country but you will lose some a description in English. This way not suitable for me as nagiios and some date on server reflect in Ukraine,  if all is ok, please proceed

Find your location here

less /usr/share/i18n/SUPPORTED

The content of the file below should be as

sudo vi /etc/default/locale
LANG="en_US.UTF-8"
LC_ALL="Your location from /usr/share/i18n/SUPPORTED (but without double UTF)"
LANGUAGE="en_UTF.UTF-8"

in my case it was as

LANG="en_US.UTF-8"
LC_ALL="ru_RU.UTF-8"
LANGUAGE="en_UTF.UTF-8"

save this file

and

sudo dpkg-reconfigure locales

and reboot your PC

All should be ok now

Second way. As results you will see your your native language in the normal form

go to

sudo vi /etc/default/locale

save file with

LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LANGUAGE="en_UTF.UTF-8"
sudo dpkg-reconfigure locales

reboot your PC

and check

locale
LANG=en_US

LANGUAGE=en_UTF.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

Enjoy

 

 

Similar Posts:

    None Found

Leave a Reply

Your email address will not be published. Required fields are marked *