juretta.com

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

May 09, 2007
Tags: SVN
Filenames containing "special characters" can cause an annoying Subversion error message:
svn: Can't convert string from 'UTF-8' to native encoding:
From the subversion book:
Errors like this typically occur when the Subversion client has received a UTF-8 string from the repository, but not all of the characters in that string can be represented using the encoding of the current locale. For example, if your locale is en_US but a collaborator has committed a Japanese filename, you're likely to see this error when you receive the file during an svn update.
To fix this error message you have to set your current locale appropriately:
macbook:~ stefan$ export LC_CTYPE=en_US.UTF-8
macbook:~ stefan$ 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"
macbook:~ stefan$ svn update

About

This is the defunct blog of Stefan Saasen.