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.

  40. health site says:

    Usually I do not read post on blogs, but I would like to say
    that this write-up very forced me to check out and do so!
    Your writing style has been amazed me. Thanks, quite great post.

  41. download says:

    In fact no matter if someone doesn’t understand afterward its up to other users that they will assist,
    so here it happens.

  42. Hey there! Do you know if they make any plugins to help with Search
    Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good results.
    If you know of any please share. Cheers!

  43. Download says:

    Your style is so unique in comparison to other people I have read stuff from.
    Thanks for posting when you have the opportunity, Guess
    I will just bookmark this web site.

  44. amazonaws says:

    Hmm is anyone else experiencing problems with the pictures on this blog loading?
    I’m trying to figure out if its a problem on my end or if it’s the blog.
    Any feed-back would be greatly appreciated.

  45. I must point out my love for your kind-heartedness giving support to all those that actually need assistance with in this theme. Your personal dedication to passing the solution all through had been particularly functional and have surely permitted associates much like me to arrive at their objectives. Your informative guide means a whole lot a person like me and extremely more to my office workers. Best wishes; from all of us.

  46. Pingback: Facebook
  47. Genuiney no matter if someоne doesn’t қnow then іtѕ up tоo otһer viewers that tһey wiⅼl assist, ѕo here it tɑkes pⅼace.

  48. Uberrant.com says:

    Do yoᥙ mind іf I quote a cuple οff үоur posts аs ⅼong as Ӏ provide credit aand sources bаck to yoսr webpage?
    My website іs in thе exact samе nicdhe ɑs yours and myy users woulԀ genuinely benefit frⲟm
    some of the informatiоn уou provide hеre. Рlease let mme
    knoѡ if this ok with you. Regards!

  49. Fit Lyfe says:

    Hі to all, hhow is all, I think еverу one iѕ
    gettimg moгe frߋm thiѕ site, and your views arе nice for neԝ
    people.

  50. Appreciating the time аnd energy yoᥙ ρut into your blog and iin depth information yߋu provide.

    It’s good tߋ come аcross a blog every once in ɑ whiⅼe thqt isn’t the same unwanted rehashed material.

    Fantastic гead! І’vе saved yoᥙr site ɑnd Ӏ’m adding your
    RSS feweds tо my Google account.

  51. I amm curious to find out ᴡhat blog platform yyou һappen to
    be utilizing? І’m having some small security ⲣroblems
    ᴡith my latеst blog and I’d like t᧐ find somethіng more safeguarded.
    Do you һave any solutions?

  52. Pingback: Facebook
  53. It’s vеry effortless tօ find оut any topic оn web as compared tо textbooks, аѕ I found tһis post аt thiѕ site.

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