Problema: caracteres confusos en terminal, Edge, VScode y otro software
Insertar descripción de la imagen aquí
Solución
① Instalar el paquete de idioma chino
sudo apt-get install language-pack-zh-han*
② Verificación de compatibilidad con el idioma en tiempo de ejecución
sudo apt install $(check-language-support)
③ Modificar archivos de configuración relacionados
sudo gedit /etc/default/locale
Reemplace el contenido original con lo siguiente:
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
LC_NUMERIC="zh_CN"
LC_TIME="zh_CN"
LC_MONETARY="zh_CN"
LC_PAPER="zh_CN"
LC_NAME="zh_CN"
LC_ADDRESS="zh_CN"
LC_TELEPHONE="zh_CN"
LC_MEASUREMENT="zh_CN"
LC_IDENTIFICATION="zh_CN"
LC_ALL="zh_CN.UTF-8"
④ Modificar variables de entorno
Añadir en la última línea