Today i was bored by svn. Filenames containing “special characters” can cause an annoying Subversion error message:
1 | 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:
1 2 3 4 5 6 7 8 9 10 11 | Pussybook Pro:~ inbreed$ export LC_CTYPE=en_US.UTF-8 Pussybook Pro:~ inbreed$ 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" Pussybook Pro:~ inbreed$ svn update |
Write a Comment