svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
2015-05-08 00:30
477 查看
svn 版本库中有文件是以中文字符命名的,在 Linux 下 checkout 会报错:
svn: Can't convert string from 'UTF-8' to native encoding
然后 checkout 程序就退出了!
解决办法很简单,正确设置当前系统的 locale:
export LC_CTYPE="zh_CN.UTF-8"
然后重新 checkout 即可。
注意,根据你的系统字符集设置变量,如果 zh_CN.UTF-8 不行,有可能要改成 GB2312:
export LC_CTYPE="zh_CN.GB2312"
另外,看别人的帖子,有的变量名不同,用的是:
export LANG="zh_CN.UTF-8"
svn: Can't convert string from 'UTF-8' to native encoding
然后 checkout 程序就退出了!
解决办法很简单,正确设置当前系统的 locale:
export LC_CTYPE="zh_CN.UTF-8"
然后重新 checkout 即可。
注意,根据你的系统字符集设置变量,如果 zh_CN.UTF-8 不行,有可能要改成 GB2312:
export LC_CTYPE="zh_CN.GB2312"
另外,看别人的帖子,有的变量名不同,用的是:
export LANG="zh_CN.UTF-8"
相关文章推荐
- svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
- svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
- svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
- svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
- svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
- svn: Can't convert string from 'UTF-8' to native encoding 解决方法
- 解决 Subversion 的 “svn: Can't convert string from 'UTF-8' to native encoding” 错误
- 解决svn: Can't convert string from 'UTF-8' to native encoding问题
- 解决svn: Can’t convert string from ‘UTF-8′ to native encoding
- subversion: Can't convert string from 'UTF-8' to native encoding的解决办法
- 解决svn: Can't convert string from 'UTF-8' to native encoding问题
- 解决 Subversion 的 “svn: Can't convert string from 'UTF-8' to native encoding” 错误
- 解决svn: Can't convert string from 'UTF-8' to native encoding:
- svn: Can't convert string from 'UTF-8' to native encoding
- svn: Can't convert string from 'UTF-8' to native encoding:
- svn错误:Can't convert string from 'UTF-8' to native encoding
- svn update 目录包含中文时出错(svn:Can’t convert string from ‘UTF-8′ to native encoding)
- “svn: Can't convert string from 'UTF-8' to native encoding” 错误
- Linux svn: Can't convert string from 'UTF-8' to native encoding 解决
- svn locale Can't convert string from native encoding to 'UTF-8'