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

前端 未结 11 985
花落未央
花落未央 2020-12-13 06:29

I\'ve got a post-commit hook script that performs a SVN update of a working copy when commits are made to the repository.

When users commit to the repository from th

11条回答
  •  执念已碎
    2020-12-13 06:52

    It seems that all LC_ varables need .UTF8 at the end. For example, I happened to have LC_ALL, LC_TIME, and LC_CTYPE defined. After setting LC_CTYPE the problem was not solved, so I needed to type LC_ALL as well and then it worked:

    LC_ALL=en_US.UTF-8
    LC_TIME=en_DK.UTF-8
    LC_CTYPE=en_US.UTF-8
    

    In order to avoid the problem again, I copied the file to a different name, removed the old one from svn, added new one to svn, and send a message to a collaborator not to do this.

提交回复
热议问题