Setting up a UTF-8 environment in linux

Based on this post.

Check if the locales package is installed (dpkg -l locales). Then run:

dpkg-reconfigure locales

and choose the desired locales (en_US.UTF-8, for me).

Then, to be sure, export the variables (~/.bashrc)

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

You should start tmux or screen with the parameters, to be sure:

$ tmux -u
$ screen -U

Leave a comment

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.