svn locale Can't convert string from native encoding to 'UTF-8'

svn 提交代码报错,原因很简单,编码的问题

报错信息

shell>svn update test
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is UTF-8
svn: warning: please check that your locale name is correct
svn: Error converting entry in directory 'test' to UTF-8
svn: Can't convert string from native encoding to 'UTF-8':
svn: ?\239?\188?\129

PS: 根本问题貌似是对应版本控制的目录下,有两个图片文件名乱码

当前终端locale详情 (mac)

shell>locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: ?????????
LANG=zh_CN.utf8
LC_CTYPE=UTF-8
LC_NUMERIC="zh_CN.utf8"
LC_TIME="zh_CN.utf8"
LC_COLLATE="zh_CN.utf8"
LC_MONETARY="zh_CN.utf8"
LC_MESSAGES="zh_CN.utf8"
LC_PAPER="zh_CN.utf8"
LC_NAME="zh_CN.utf8"
LC_ADDRESS="zh_CN.utf8"
LC_TELEPHONE="zh_CN.utf8"
LC_MEASUREMENT="zh_CN.utf8"
LC_IDENTIFICATION="zh_CN.utf8"
LC_ALL=

其他同事ssh连接到服务器的终端输出 (windows)

shell>locale
LANG=zh_CN.utf8
LC_CTYPE=zh_CN.utf8
LC_NUMERIC="zh_CN.utf8"
LC_TIME="zh_CN.utf8"
LC_COLLATE="zh_CN.utf8"
LC_MONETARY="zh_CN.utf8"
LC_MESSAGES="zh_CN.utf8"
LC_PAPER="zh_CN.utf8"
LC_NAME="zh_CN.utf8"
LC_ADDRESS="zh_CN.utf8"
LC_TELEPHONE="zh_CN.utf8"
LC_MEASUREMENT="zh_CN.utf8"
LC_IDENTIFICATION="zh_CN.utf8"
LC_ALL=

临时解决

PS: 我本地执行一下如下后,svn update test 正常了

code

LANG=zh_CN.utf8 LC_CTYPE="zh_CN.utf8" LC_NUMERIC="zh_CN.utf8" LC_TIME="zh_CN.utf8" LC_COLLATE="zh_CN.utf8" LC_MONETARY="zh_CN.utf8" LC_MESSAGES="zh_CN.utf8" LC_PAPER="zh_CN.utf8" LC_NAME="zh_CN.utf8" LC_ADDRESS="zh_CN.utf8" LC_TELEPHONE="zh_CN.utf8" LC_MEASUREMENT="zh_CN.utf8" LC_IDENTIFICATION="zh_CN.utf8" LC_ALL=

后记

Something about locale

时间: 2024-08-23 07:08:45

svn locale Can't convert string from native encoding to 'UTF-8'的相关文章

nginx-Can't convert string from UTF8 to native encoding

问题描述 Can't convert string from UTF8 to native encoding svn: Can't convert string from 'UTF8' to native encoding 在centos使用nginx时遇到一个问题,我再nginx配置的web目录中写一个 index.php文件,内容: <?php exec("./test.sh", $out, $res); print_r($out); ?> test.sh内容: ?cd

Linux使用svn时报错Can&#039;t convert string from的解决方法

  Linux使用svn的时候,出现了错误提示,即can't convert string from 'UTF-8' to native encoding,这主要是编码格式所导致的问题,下面小编就给大家介绍下解决该问题的方法. 在linux中,svn co . svn up或者svnc cleanup时,如果有中文文件名的文件报下面的错: svn: Can't convert string from 'UTF-8' to native encoding: svn: src/main/webapp

svn error:“svn: Can’t convert string from ‘UTF-8′ to native encoding”错误记录

需要把svn代码拉倒本地,使用svn export,用户密码什么的认证后,就会出现下载的文件列表,最后会以题目这句结尾. 1 svn error:"svn: Can't convert string from 'UTF-8′ to native encoding" 我一直以为这只是提醒编码有问题,并未在意,但是看下拉下来的目录发现很多文件没拉下来.换了svn checkout什么的都不行. 最后才知道,尼玛,这个错误直接就会让下载停止. 其实但看错误基本能知道是编码的问题,查了一下,果

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

[root@linkea-dev-srv1 ~]# svn up svn: Can't convert string from 'UTF-8′ to native encoding: svn: src/main/webapp/resources/js/My97DatePicker/?229?188?128?229?143?145?229?140?133 先locale看一下系统编码设置: [root@linkea-dev-srv1 ~]# locale LANG=en_US.UTF-8 LC_C

解决svn: Can&#039;t convert string from &#039;UTF-8&#039; to native encoding错误

报下面的错:  代码如下 复制代码 svn: Can't convert string from 'UTF-8' to native encoding: svn: src/main/webapp/resources/js/My97DatePicker/?229?188?128?229?143?145?229?140?133 第一行的大致意思是:不能将字符串从UTF-8编码转换到本地,主要是因为SVN客户端需要utf8来支持中文. 第二行报销的文件路径,查看其路径下的文件,肯定是有中文命名的文件.

创建sftp连接时报错-sftp连接时,报错invalid server&amp;amp;#39;s version string

问题描述 sftp连接时,报错invalid server's version string 连接方法,我看了一下和网上一样.但这种错误在网上没有搜索到.有遇到这个错误的,给点提示,谢谢.public ChannelSftp connect(String host int port String usernameString password) {ChannelSftp sftp = null;try {JSch jsch = new JSch();jsch.getSession(usernam

Tomcat启动报错:java.lang.IllegalArgumentException: Can&amp;#39;t convert argument:null

一.发现问题为了避免导入的项目重名,我先修改了前一个项目的名称. 重新启动该项目至tomcat,报错:java.lang.IllegalArgumentException: Can't convert argument: null   二.发现问题因为MyEclipse在修改项目名时候,自动更新部署了web.xml文件 并且重新生成了xml文件的头部声明. 新增了java的命名把这个javaee去掉就可以了,一般情况下他会修改servlet的配置. <filter>      <filt

c++-为什么总提示CtrlDlg.cpp: &amp;amp;#39;=&amp;amp;#39; : cannot convert from &amp;amp;#39;char&amp;amp;#39; to &amp;amp;#39;char *&amp;amp;#39;?

问题描述 为什么总提示CtrlDlg.cpp: '=' : cannot convert from 'char' to 'char *'? 其部分代码如下://添加新的项目 LV_ITEM curItem; curItem.mask=TVIF_TEXT | TVIF_IMAGE | TVIF_STATE; curItem.state=0; curItem.stateMask=0; //为子目录和文件指定不同的图像 if((wfd.dwFileAttributes & FILE_ATTRIBUTE

cygwin下nutch1.6:cygpath:can&amp;amp;#39;t convert empty path

问题描述 cygwin下nutch1.6:cygpath:can't convert empty path 错误是如何发生的,该怎么解决?感谢! 解决方案 参考下http://stackoverflow.com/questions/17887365/starting-hbase-cygpath-cant-convert-empty-path 解决方案二: 网络上有人遇到与你同样的问题,可使用搜索引擎由 Baidu/Bing.Bing:cygpath:can't convert empty pat