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”再试试。

相关文章
|
SQL 数据库
【YashanDB 知识库】导入数据时报错:YAS-00008 type convert error:literal does not match format string
【YashanDB 知识库】导入数据时报错:YAS-00008 type convert error:literal does not match format string
|
SQL 数据库
【YashanDB知识库】导入数据时报错:YAS-00008 type convert error:literal does not match format string
【YashanDB知识库】导入数据时报错:YAS-00008 type convert error:literal does not match format string
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
|
安全
MD5 Encryption Of String ( UTF-8 ) / UE4 DTMd5 Plugin description
MD5 Encryption Of String ( UTF-8 ) / UE4 DTMd5 Plugin description
446 1
|
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 ‘
873 0
|
算法 网络安全 数据库
MD5 Encryption Of String ( UTF-8 ) / UE4 MD5 加密
MD5 Encryption Of String ( UTF-8 ) / UE4 MD5 加密
650 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';
1160 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'
459 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‘ 提示
1453 0
深度剖析‘StringBuilder‘ can be replaced with ‘String‘ 提示