内容简介:本篇文章给大家总结了Linux与Windows编码不一致的解决方法以及相关注意点,有需要的朋友参考下。
Windows编码无法修改,修改 linux 的编码,使之与windows编码一致。
查看windows编码格式,打开cmd
chcp
找到对应的活动代码页
52936 简体中文(HZ) 936 中国 - 简体中文(GB2312) 950 繁体中文(Big5) 65001 Unicode (UTF-8) 1200 Unicode
查看linux正在使用的编码格式
locale
查看linux支持哪些编码格式
locale -a
修改linux编码格式(centos7)
vim /etc/locale.conf
修改为
LANG=zh_CN.gb2312
注意:博主的活动代码页为936,对应着locale -a查看出来的zh_CN.gb2312编码
重启生效
reboot
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Handbook of Data Structures and Applications
Dinesh P. Mehta / Chapman and Hall/CRC / 2004-10-28 / USD 135.95
In the late sixties, Donald Knuth, winner of the 1974Turing Award, published his landmark book The Art of Computer Programming: Fundamental Algorithms. This book brought to- gether a body of kno......一起来看看 《Handbook of Data Structures and Applications》 这本书的介绍吧!