svn: Can’t convert string from ‘UTF-8’ to native encoding:

svn上有个文档是中文的,在Centos上co时报错:svn: Can’t convert string from ‘UTF-8’ to native encoding:

convertutf8

应该是系统编码的问题

参考:
http://www.cnblogs.com/R-zqiang/archive/2012/11/23/2785125.html

临时解决:
#export LC_CTYPE="zh_CN.UTF-8"
然后重新 checkout 即可。

永久生效:
vi /etc/profile

export LC_ALL="zh_CN.UTF-8"
export LANG="zh_CN.UTF-8"

source /etc/profile

未经允许不得转载:ganlei的个人博客 » svn: Can’t convert string from ‘UTF-8’ to native encoding:

赞 (0)
分享到:更多 ()