解决svn: Can’t convert string from ‘UTF-8′ to native encoding编码问题,这个是因为编码导致乱码了,解决办法非常的简单,具体操作步骤如下.
今天同事在新服务器上更新svn代码的时候,出现如下错误:
- Can't convert string from native encoding to 'UTF-8':
- svn: 5?/228?/189?/141?/227?/128?/128950?/231?/130?/185?/227?/128?/128?/229?/138?/160?/232?/151?/164?/227?/128?/128?/230?/133?/142?/228?/186?/140.jpg --Vevb.com
- svn: Can't convert string from 'UTF-8' to native encoding:
- svn: docroot/new_interview/images/?/230?/151?/165?/230?/156?/172?/229?/183?/165?/229?/173?/166?/233?/153?/162?/227?/128?/128?/230?/173?/163?/231?/148?/176.jpg
然后代码也没有下载下来,找到docroot/new_interview/images/文件夹下面一看,好多图片的命名都带有汉字,难怪无法更新.
解决办法如下:
- echo 'export LC_CTYPE="zh_CN.UTF-8"'>>/etc/profile
- source /etc/profile
这样svn在checkout的时候,就不会再报错误了.
新闻热点
疑难解答