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

前端 未结 11 981
花落未央
花落未央 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:40

    I got a similar problem when running "svn add" on a directory, but the solution was different. I couldn't see the "hex" digits using printf (actually no hex output was shown by svn), but this command allowed me to see the results, and fix it:

    LC_ALL=C svn add probealign
    

    I think, in general, sticking LC_ALL=C before your command allows you to see the offending files... and is a lot easier than pasting in a lot of \x72 stuff (which apparently may not be available).

提交回复
热议问题