Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache reverse Proxy charset problem

Status
Not open for further replies.

webfuture

MIS
Jan 17, 2003
65
CA
I have setup a proxy on FC3 with apache... Here's the relevent info in httpd.conf

ProxyPass /intranet/ ProxyHTMLURLMap /intranet

<Location /intranet/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /intranet/
ProxyHTMLURLMap /intranet /intranet
RequestHeader unset Accept-Encoding
ProxyHTMLExtended On
</Location>

I have those error message in apache error log.

Unsupported charset Windows-1252 in HTML META
No usable charset information: using old HTTP default LATIN1

So from what I understand, the html re-writer mod_proxy_html need to understand the charset coming from the proxied web server. This particular one is using a windows charset that apache on linux does not understand and this is giving a parsing error and the proxy of that server fails.

Any ideas of what I can do?
Is there a way to make apache understand the charset Windows-1252?

Thanks

Simon
 
I contacted the developer of mod_proxy_html.

Here's his response.

What matters here is whether libxml2 understands the charset, since it's libxml2 that converts. It's not down to apache or linux.

If you *know* your input is a particular charset like Windows-1252, the solution would be to convert it before it reaches the proxy.
If the backend were Apache, then mod_charset_lite there would do the job. You might still get messages in the log, but the pages will display correctly through the proxy.

Anyway, isn't windows-1252 mostly identical to iso-8859-1?

Hope this help someone...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top