linux修改默認編碼方式

查看linux編碼方式命令:localelinux      如圖,linux默認的編碼方式爲utf-8。windows默認的編碼方式爲GBK,在windows下編輯的中文,在linux中會顯示爲亂碼,修改linux的默認編碼方式爲GBK,就能夠解決亂碼問題。vim 方法:windows vim /etc/profile編碼 在文件末尾寫入blog export LC_ALL="zh_CN.GBK
相關文章
相關標籤/搜索