enable UTF-8 support in the Kali Linux console
Check that you have the locales package installed
dpkg -l locales
If not, install it
sudo apt-get install locales
As root, type
sudo dpkg-reconfigure locales
you can navigate that list with the up/down arrow keys, for example choose en_US-UTF-8
或者:
edit your .bashrc by adding the following lines:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
Run the locale command ,the output should be similar to this::
LANG=en_US.UTF-8
LANGUAGE=en_US:en
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=
来源:https://unix.stackexchange.com/questions/303712/how-can-i-enable-utf-8-support-in-the-linux-console