Configure System Locale
Set UTF-8 Chinese locale
Overview
Set UTF-8 Chinese locale
Commands
sudo apt-get update && sudo apt-get install -y locales
sudo locale-gen zh_CN.UTF-8
sudo update-locale LANG=zh_CN.UTF-8
Use Cases
Servers with a Chinese environment, fix garbled Chinese filenames.
Prerequisites
None.
FAQ
- Restart shell needed → re-login or
source /etc/default/locale