Can nginx override encoding of Tomcat back end?
Igor Sysoev
igor at sysoev.ru
Fri Nov 25 15:34:18 UTC 2011
On Fri, Nov 25, 2011 at 03:24:18PM +0000, John Moore wrote:
> On 25/11/11 15:16, Igor Sysoev wrote:
> >
> > You can try this, but nginx will scan response body with ISO-8859-1
> > trying to convert it to utf-8:
> >
> > http {
> > charset_map iso-8859-1 utf-8 {}
> >
> > server {
> > charset utf-8;
> > override_charset on;
> >
> >
> Thanks Igor. I tried this, but it's still leaving the encoding as
> ISO-8859-1 (as reported under Page Info in Firefox).
Are you sure that Firefox did not get it from cache ?
> This is 0.6.32 on
> Windows - I don't know whether a more recent version would help?
Where have you found such version ?
The first nginx/Windows version was 0.7.52.
There were some change in charset module in 0.8.0, so you can try
more modern version.
--
Igor Sysoev
More information about the nginx
mailing list