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

14 points

I am importing into a new repository into SVN and I am getting this error: "Can’t convert string from ‘UTF-8′ to native encoding:”.  Can somebody thrown light on the fix?

Created by programmer 38 weeks 5 days ago
  Tags:

Answer(s):

3 points

To fix this error message you have to set your current locale appropriately: 

Execute

<code>

shell> export LC_CTYPE=en_US.UTF-8

</code>

on the shell and the problem would be solved. 
<code>
shell> 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"

</code> 
Created by tadaFurrita

Post your Answer

  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options