[Solved] 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

Using the HTTP + SVN scheme, if the hook contains Chinese, an error prompt “error output could not be translated from the native locale to UTF-8.” may appear

The reason for this error is that the HTTP service itself has an encoding setting. Therefore, if the HTTP encoding is not set properly, the Chinese returned by the hook will cause an encoding error. The specific solutions are as follows:

<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
SVNUseUTF8 On
</IfModule>

Similar Posts: