Ubuntu 默认字符集未 En_Utf8,在遇到Windows 的中文时有时会出现乱码,本文记录调整 Ubuntu 默认字符集的方法。
sudo apt-get install locales
sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-intl-chinesesudo dpkg-reconfigure localesen_US.UF8 UTF-8zh_CN GB2312zh_CN.GBK GBKzh_CN.UTF-8 UTF-8
zh_CN.UTF-8或修改默认语言/etc/default/locale
sudo vim /etc/default/localeLANG=zh_CN.UTF-8