svn错误:Can't convert string from 'UTF-8' to native encoding

简介: 如果文件名包含了中文,当执行“svn up .”遇到如下错误时:svn: Can't convert string from 'UTF-8' to native encoding:svn: docs/?\228?\188?\129?\228?\184?\154?\230?\141?\...
如果文件名包含了中文,当执行“svn up .”遇到如下错误时:
svn: Can't convert string from 'UTF-8' to native encoding:
svn: docs/?\228?\188?\129?\228?\184?\154?\230?\141?\144?\230?\173?\165?\230?\149?\176?\230?\141?\174?\229?\186?\147?\232?\161?\168?\231?\187?\147?\230?\158?\132.xls


可尝试设置如下几个环境变量:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8


上面的en_US也可以为zh_CN。当修改生效后,再次“svn up”试试,也许问题就解决了。但如果“UTF-8”不行,可以尝试改成“GB2312”或“GBK”再试试。

相关文章
|
Java
Can't convert boolean to string automatically, because the "boolean_format" setting was "true,false"
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/71683167 ...
2474 0
|
XML 数据格式
解决 Cannot convert value of type ‘java.lang.String‘ to required type ‘java.sql.Driver‘ for property ‘
解决 Cannot convert value of type ‘java.lang.String‘ to required type ‘java.sql.Driver‘ for property ‘
403 0
|
安全
MD5 Encryption Of String ( UTF-8 ) / UE4 DTMd5 Plugin description
MD5 Encryption Of String ( UTF-8 ) / UE4 DTMd5 Plugin description
110 1
|
Java
SpingBoot2.x文件上传:failed to convert java.lang.String to org.springframework.util.unit.DataSize
SpingBoot2.x文件上传:failed to convert java.lang.String to org.springframework.util.unit.DataSize
412 0
|
算法 网络安全 数据库
MD5 Encryption Of String ( UTF-8 ) / UE4 MD5 加密
MD5 Encryption Of String ( UTF-8 ) / UE4 MD5 加密
312 0
|
Java 数据库连接
Failed to convert value of type 'java.lang.String' to required type 'java.time.LocalDate';
Failed to convert value of type 'java.lang.String' to required type 'java.time.LocalDate';
797 0
|
Linux Windows
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
179 0
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
|
Java 编译器
深度剖析‘StringBuilder‘ can be replaced with ‘String‘ 提示
深度剖析‘StringBuilder‘ can be replaced with ‘String‘ 提示
1128 0
深度剖析‘StringBuilder‘ can be replaced with ‘String‘ 提示
|
Java
‘StringBuilder‘ can be replaced with ‘String‘
‘StringBuilder‘ can be replaced with ‘String‘
396 0