<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]svn: Cant convert string from UTF-8 to native encoding 的解决办法]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Wed, 11 Jun 2014 10:08:33 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	页面构建时有中文名：<br/>你里面是不是有中文文件名，出现：svn: Can&#039;t convert string from native encoding to &#039;UTF-8&#039;:<br/>svn: ?&#92;229?&#92;143?&#92;130?&#92;228?&#92;184?&#92;142?&#92;230?&#92;180?&#92;187?&#92;229?&#92;138?&#92;168?&#92;231?&#92;172?&#92;172?&#92;228?&#92;184?&#92;137?&#92;230?&#92;173?&#92;165-?&#92;229?&#92;143?&#92;130?&#92;228?&#92;184?&#92;142?&#92;230?&#92;136?&#92;144?&#92;229?&#92;138?&#92;159.html&nbsp;&nbsp;<br/>实践OK如下：<br/>于是在shell刚开始加入三行，如下：<br/>#! #/bin/sh<br/>export LC_CTYPE=&quot;zh_CN.UTF-8&quot;<br/>export LANG=&quot;zh_CN.UTF-8&quot; <br/>export LANGUAGE=&quot;en_US.UTF-8&quot;<br/>export LC_ALL=&quot;en_US.UTF-8&quot;<br/>[root@test ~]# locale<br/>LANG=en_US.UTF-8<br/>LC_CTYPE=&quot;en_US.UTF-8&quot;<br/>LC_NUMERIC=&quot;en_US.UTF-8&quot;<br/>LC_TIME=&quot;en_US.UTF-8&quot;<br/>LC_COLLATE=&quot;en_US.UTF-8&quot;<br/>LC_MONETARY=&quot;en_US.UTF-8&quot;<br/>LC_MESSAGES=&quot;en_US.UTF-8&quot;<br/>LC_PAPER=&quot;en_US.UTF-8&quot;<br/>LC_NAME=&quot;en_US.UTF-8&quot;<br/>LC_ADDRESS=&quot;en_US.UTF-8&quot;<br/>LC_TELEPHONE=&quot;en_US.UTF-8&quot;<br/>LC_MEASUREMENT=&quot;en_US.UTF-8&quot;<br/>LC_IDENTIFICATION=&quot;en_US.UTF-8&quot;<br/>LC_ALL=为空，我在上面给全设置了：-）<br/><br/>这样设置后，如下：<br/>export LC_CTYPE=&quot;zh_CN.UTF-8&quot;<br/>export LANG=&quot;zh_CN.UTF-8&quot; <br/>export LANGUAGE=&quot;en_US.UTF-8&quot;<br/>export LC_ALL=&quot;en_US.UTF-8&quot;<br/><textarea name="code" class="php" rows="15" cols="100">
在上在的脚本中运行locale：
LANG=zh_CN.UTF-8
LC_CTYPE=&quot;en_US.UTF-8&quot;
LC_NUMERIC=&quot;en_US.UTF-8&quot;
LC_TIME=&quot;en_US.UTF-8&quot;
LC_COLLATE=&quot;en_US.UTF-8&quot;
LC_MONETARY=&quot;en_US.UTF-8&quot;
LC_MESSAGES=&quot;en_US.UTF-8&quot;
LC_PAPER=&quot;en_US.UTF-8&quot;
LC_NAME=&quot;en_US.UTF-8&quot;
LC_ADDRESS=&quot;en_US.UTF-8&quot;
LC_TELEPHONE=&quot;en_US.UTF-8&quot;
LC_MEASUREMENT=&quot;en_US.UTF-8&quot;
LC_IDENTIFICATION=&quot;en_US.UTF-8&quot;
LC_ALL=en_US.UTF-8
</textarea><br/><br/>好了：<br/>跳过“set-depth=exclude”<br/>跳过“data”<br/>于修订版 1444。<br/>跳过“set-depth=exclude”<br/>跳过“data”<br/>————————————————————————————————————————————————————————————————<br/>svn 版本库中有文件是以中文字符命名的，在 Linux 下 checkout 会报错：<br/>svn: Can&#039;t convert string from &#039;UTF-8&#039; to native encoding<br/>然后 checkout 程序就退出了！<br/>解决办法很简单，正确设置当前系统的 locale：<br/>export LC_CTYPE=&quot;zh_CN.UTF-8&quot;<br/>然后重新 checkout 即可。<br/>注意，根据你的系统字符集设置变量，如果 zh_CN.UTF-8 不行，有可能要改成 GB2312：<br/>export LC_CTYPE=&quot;zh_CN.GB2312&quot;<br/>另外，看别人的帖子，有的变量名不同，用的是：<br/>export LANG=&quot;zh_CN.UTF-8&quot;<br/><br/>来自：<br/>http://www.toplee.com/blog/566.html <br/>http://svnbook.red-bean.com/en/1.2/svn.advanced.l10n.html<br/><br/>——————————————————————————————————————<br/>方法一：只需要修改bash_profile文件就可以，添加下面几行：<br/> export LC_ALL=en_US.UTF-8<br/>export LANG=en_US.UTF-8<br/>export LANGUAGE=en_US.UTF-8<br/>然后source一下：<br/> . ~/.bashrc<br/>这时候，再重新进行SVN操作就会再报svn: Can&amp;#39;t convert string from &amp;#39;UTF-8&amp;#39; to native encoding:的错误了。<br/><br/>方法二：另一种解决办法<br/>解决办法很简单，正确设置当前系统的 locale：<br/>export LC_CTYPE=“zh_CN.UTF-8″<br/>然后重新 checkout 即可。<br/><br/>摘自：http://www.111cn.net/sys/linux/60107.htm
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]svn: Cant convert string from UTF-8 to native encoding 的解决办法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>