svn:Error output could not be translated from the native locale to UTF-8

中文编码错误,Error output could not be translated from the native locale to UTF-8.

使用http+svn方案是,在钩子中里面如果含有中文,可能就会出现“Error output could not be translated from the native locale to UTF-8.”的错误提示

导致这个错误的原因是因为http服务本身有一个编码的设置,所以如果http的编码没有设置好,钩子返回的中文就会导致编码错误,具体解决方法如下:

<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
SVNUseUTF8 On
</IfModule>
posted @ 2021-12-08 11:31  冰块好冰  阅读(888)  评论(0)    收藏  举报