linux_环境变量设置 utf-8

echo $LANG

显示编码  :  en_US.UTF-8  英文urf8有时显示程序输出是?

解决方法:

vim ~/.bashrc

最后一行追加:

export LANG=zh_CN.UTF-8

然后使用户配置生效 

source ~/.bashrc 

posted @ 2015-06-09 16:20  cphmvp  阅读(2892)  评论(0编辑  收藏  举报
爬虫在线测试小工具: http://tool.haoshuju.cn/