今天用VI编辑.bash_profile时,当保存文件时,系统一直提示:(原来是字符串转换出问题)
test.txt" 不能写入 -- 转换失败请按 ENTER 或其它命令继续
于是上网查资料,参考 :http://hi.baidu.com/vv1133/item/29bf6c17360240701009b5a9。
本人用echo "set encoding=gb2312" >> .exrc 解决此问题。
今天用VI编辑.bash_profile时,当保存文件时,系统一直提示:(原来是字符串转换出问题)
test.txt" 不能写入 -- 转换失败请按 ENTER 或其它命令继续
于是上网查资料,参考 :http://hi.baidu.com/vv1133/item/29bf6c17360240701009b5a9。
本人用echo "set encoding=gb2312" >> .exrc 解决此问题。
转载于:https://my.oschina.net/3pgp/blog/168064