How to solve websvn's Chinese garbled problem-Linux Release Technology-Debian information. See the following for details. Websvn is a php-compiled web interface of subversion. However, it is found that this program does not properly display the Chinese directories and annotations in svn. The original Chinese directories are displayed \? \ 230 \? \ 153 \? \ 88 garbled characters.
Due to security concerns, this system imposes open_dir restrictions on php, so we did not use apt to install websvn. Instead, we downloaded version 1.6.1 from websvn.tigris.org, the latest version 2.0 is incompatible with the default svn1.4.2 version.
After tracking and debugging, it is found that websvn uses the php popen function to call the svn command and read the returned value, but the returned content is garbled. Further tests show that LANG is set to C in the environment variable of the popen function. In this way, the Chinese information of the svn command is changed \? \ 230 \? \ 153 \ class garbled.
Once you understand the problem, it is easy to modify it:
First, modify the encoding settings in the config. inc file.