Fix of error: “warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)”

Working with lot of servers, recently I logged into one of them and got an error while working with shell:

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

It was very hard to work and see this error regularly so I found a fix.

To fix this you need to add this to your profile (in my case ~/.profile):

export LC_CTYPE="en_US.UTF-8"

Then you need to load your profile again:

source ~/.profile