【记录】Ubuntu18.04 Docker 中文乱码 年少不知有林皇错把梅罗当球王 2021-10-26 4,822 阅读1分钟 查看字符集 locale 安装 en_US.UTF-8 locale-gen en_US.UTF-8 可用语言环境 locale -a 4. 更改编码 echo "export LC_ALL=en_US.UTF-8" >> /etc/profile // docker 镜像 运行以下代码 echo "export LC_ALL=en_US.UTF-8" >> /root/.bashrc source /etc/profile source /root/.bashrc