LC_CTYPE: cannot change locale

This happens all the times to me. Keeping a note here..


for Centos

cat 'LC_CTYPE="en_US.UTF-8"' >> /etc/environment

For Ubuntu

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8 en_US 

dpkg-reconfigure locales ->> choose 149 and 3

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.