天天看点

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

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

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的时候,就不会再报错误了.

本文转自 xinsir999 51CTO博客,原文链接:http://blog.51cto.com/xinsir/1670624,如需转载请自行联系原作者

继续阅读