系统版本:Debian 6.0.2 Squeeze 产生乱码原因:系统没有中文字体 解决方案: 1、从win下拷贝后缀为ttf的字体库到/usr/share/fonts/truetype/,我这里拷贝MSYH.ttf(微软雅黑)。 2、终端输入一下代码: #su root #cd /usr/share/fonts/truetype/ #chmod 644 MSYH.ttf #mkfontscale #mkfontdir 3、重启电脑或者在终端输入fc-cache