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

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

    1. It changes the encoding to a location-neutral encoding in case someone with a different encoding checks it out.

    2. Of course. But it's not "Windows" ASCII (Windows actually uses some strange encoding like CP1251 or so).

    The best way to fix this is to make sure that your system uses UTF-8 whenever possible (check $LANG).

提交回复
热议问题