SVN, Fix “Can’t convert string from ‘UTF-8′ to native encoding:”

Well getting back from vacation I tried to update one of my subversion repositories, and I were once more met with the “Can’t convert string from ‘UTF-8′ to native encoding:” , luckily it is easily fixed. This problem is caused by filename containing “special” characters (in my case Swedish ÅÄÖ).

[conlun@mbp:/]$ export LC_CTYPE=en_US.UTF-8

Verify you changes by running

[conlun@mbp:/]$ 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=”C/en_US.UTF-8/C/C/C/C”

Comments

2 Responses to “SVN, Fix “Can’t convert string from ‘UTF-8′ to native encoding:””

  1. Grant Morgan on January 15th, 2009 12:19 pm

    This works in linux also.
    Thanks for the post it just solved my problem.
    Cheers
    Grant

  2. Arthur on January 19th, 2009 8:27 pm

    Thanks much. The problem as well is fixed onto Debian + svn

Leave a Reply