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

之前遇到一个问题,svn里面如果提交了中文文件名的文件或者包含其他特殊字符的文件名的文件,会导致linux或者freebsd上svn update/checkout的时候出现错误“svn: Can’t convert string from ‘UTF-8’ to native encoding”

这个问题是由系统字符集设置导致的,可以使用如下方法解决:
在bash的shell下,输入如下命令:

#export LC_CTYPE=en_US.UTF-8

然后运行如下命令确认发生的变化如下:

#locale

将得到如下的结果返回:

LANG=
LC_COLLATE="C"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

可以把以上内容直接加到svn的钩子里面,解决提交时自动输出处理遇到的问题。

Category: Linux / BSD, 其他技术  Tags:
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
3 Responses
  1. luguo says:

    记下了,今后用到svn的时候或许有用.

  2. ds cartes says:

    GOOD

  3. minecraft says:

    Hmm is anyone else encountering problems with the images on this blog loading?

    I’m trying to determine if its a problem on my end or if it’s the blog.

    Any responses would be greatly appreciated.

  4. minecraft says:

    I have to thank you for the efforts you have put
    in penning this blog. I am hoping to see the same high-grade blog posts from you later
    on as well. In fact, your creative writing abilities
    has inspired me to get my own, personal website now 😉

  5. minecraft says:

    What a information of un-ambiguity and preserveness of valuable knowledge about
    unexpected emotions.

  6. Hello would you mind stating which blog platform you’re
    working with? I’m planning to start my own blog soon but I’m having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style seems different then most blogs and I’m looking for something unique.
    P.S Apologies for being off-topic but I had to ask!

  7. Keep on writing, great job!

  8. Hey There. I found your blog using msn. This is an extremely well
    written article. I will be sure to bookmark it and return to
    read more of your useful information. Thanks for the post.

    I’ll certainly comeback.

  9. I do not even know how I ended up here, but I
    thought this post was good. I don’t know who you are but certainly you
    are going to a famous blogger if you are not already
    😉 Cheers!

  10. Every weekend i used to go to see this web page, as i want enjoyment,
    since this this web page conations actually fastidious funny stuff too.

  11. Pingback: svn:Can
  12. Hi, always i used to check webpage posts
    here early in the daylight, as i love to gain knowledge
    of more and more.

  13. Pingback: svn:Can
  14. Pingback: svn:Can
  15. I used to be able to find good info from your content.

  16. Hi there, I enjoy reading through your article. I like to write a little comment to support you.

  17. Do you mind if I quote a couple of your articles as long as I provide
    credit and sources back to your webpage? My website is in the exact same niche
    as yours and my users would definitely benefit from a lot
    of the information you present here. Please let
    me know if this alright with you. Many thanks!

  18. At this time I am ready to do my breakfast, later than having my breakfast coming again to read other news.

  19. Normally I don’t learn article on blogs, but I wish to say that this write-up very forced me to check out and do
    it! Your writing style has been amazed me. Thanks, quite great
    post.

  20. It’s amazing to pay a visit this website and
    reading the views of all mates on the topic of this paragraph, while I
    am also keen of getting experience.

  21. What a data of un-ambiguity and preserveness of precious know-how on the topic of
    unpredicted feelings.

  22. http://gg.gg says:

    Peculiar article, totally what I was looking for.

  23. Hey! I could have sworn I’ve been to this site before but after checking
    through some of the post I realized it’s new to me. Anyhow, I’m definitely happy I found it and I’ll be bookmarking and checking
    back frequently!

  24. Paragraph writing is also a excitement, if
    you know afterward you can write otherwise it is complex to write.

  25. Remarkable issues here. I am very satisfied to look your article.
    Thank you so much and I am having a look forward to touch you.
    Will you kindly drop me a e-mail?

  26. Helpful info. Lucky me I found your web site accidentally, and I am surprised why this accident did not took place earlier!
    I bookmarked it.

  27. I enjoy what you guys tend to be up too. Such clever work and coverage!
    Keep up the amazing works guys I’ve included you guys to blogroll.

  28. Pretty component of content. I just stumbled upon your website and in accession capital to assert that I acquire actually
    loved account your weblog posts. Any way I will be subscribing to your augment or even I fulfillment you get entry to consistently quickly.

  29. chilp.it says:

    Howdy! I could have sworn I’ve visited this blog before but after looking at some of the
    posts I realized it’s new to me. Regardless, I’m definitely pleased I came across it and I’ll
    be book-marking it and checking back regularly!

  30. Hello There. I found your blog using msn. This is
    a very well written article. I will make sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I will definitely return.

  31. Very good information. Lucky me I ran across your blog
    by chance (stumbleupon). I have book-marked it for later!

  32. Sling TV says:

    I constantly emailed this web site post page to all my friends, as if like to read it afterward
    my friends will too.

  33. Pretty great post. I just stumbled upon your weblog and wanted to say that I’ve truly loved surfing around your blog posts.
    In any case I’ll be subscribing in your feed and I
    am hoping you write again soon!

  34. fantastic submit, very informative. I ponder why the opposite experts of this
    sector don’t realize this. You must proceed your writing.
    I am sure, you’ve a great readers’ base already!

  35. My family members every time say that I am wasting
    my time here at web, except I know I am getting familiarity every day by reading
    thes nice content.

  36. Amazing! Its really remarkable post, I have got much clear idea about
    from this post.

  37. Pingback: svn:Can
  38. Mellisa says:

    Inspiring quest there. What occurred after?
    Thanks!

  39. gg.gg says:

    It’s in point of fact a nice and useful piece of info.
    I’m satisfied that you simply shared this helpful information with us.

    Please keep us up to date like this. Thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image