How to solve problems with locale setting in Linux


bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)


perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


echo "export LC_ALL=en_US.UTF-8" >> /root/.bash_profile
echo "export LANG=en_US.UTF-8" >> /root/.bash_profile
echo "LC_ALL=en_US.UTF-8" >> /etc/sysconfig/i18n

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s