mod_proxy_html乱码非ASCII字符

我已经在CentOS 6.4盒子上设置了mod_proxy,mod_proxy_html(3.1.3)和mod_xml2enc的反向代理

代理服务器很好地服务于目标服务器,但是它会乱码非ASCII字符(在我的情况下是'äöüéàè')。

我已经search了所有的地图试图find一个解决scheme,但无济于事。

编码在响应头中正确指定,与目标服务器(utf-8)相同。 我也试过通过以下方式设置xml2enc使用的编码:

xml2EncDefault utf-8 

但没有效果。

我正在使用代理configuration设置的虚拟主机运行代理,如下所示:

 ProxyRequests off ProxyHTMLLinks a href ProxyHTMLLinks area href ProxyHTMLLinks link href ProxyHTMLLinks img src longdesc usemap ProxyHTMLLinks object classid codebase data usemap ProxyHTMLLinks q cite ProxyHTMLLinks blockquote cite ProxyHTMLLinks ins cite ProxyHTMLLinks del cite ProxyHTMLLinks form action ProxyHTMLLinks input src usemap ProxyHTMLLinks head profile ProxyHTMLLinks base href ProxyHTMLLinks script src for ProxyHTMLLinks iframe src ProxyPass /foo/ http://someserver.com/ ProxyPassReverse /foo/ http://www.someserver.com/ <Location /foo/> SetOutputFilter INFLATE;proxy-html;DEFLATE ProxyPassReverse / ProxyPassReverseCookiePath / /foo ProxyHTMLURLMap http://www.someserver.com /foo ProxyHTMLURLMap http://someserver.com /foo RequestHeader unset Accept-Encoding </Location> 

原来,“mod_proxy_html”在这一切都是无辜的。

通过以下方式声明编码:

 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 

使问题消失。

这有点奇怪,因为“Content-Type”在响应头文件中设置正确。