Re: Setting Charset on Nginx PHP virtual host

2019-08-05 Thread Vincent M.
Le 04/08/2019 à 23:57, Francis Daly a écrit : On Sun, Aug 04, 2019 at 03:11:36PM +0200, Vincent M. wrote: Hi there, But the special characters was displayed with "?" not with � . I wonder... The nginx docs say """Missing characters in the range 80-FF are replaced with “?”. """ Is there any

Re: Setting Charset on Nginx PHP virtual host

2019-08-04 Thread Francis Daly
On Sun, Aug 04, 2019 at 03:11:36PM +0200, Vincent M. wrote: Hi there, > But the special characters was displayed with "?" not with � . I wonder... The nginx docs say """Missing characters in the range 80-FF are replaced with “?”. """ Is there any chance that the response body is actually iso-8

Re: Setting Charset on Nginx PHP virtual host

2019-08-04 Thread Vincent M.
Unfortunately, I couldn't make it work by this way! I have my server running on port 443 and specified on nginx.conf: So I tried : http {     charset_map iso-8859-1 utf-8 { }     server {     listen 9876;     charset utf-8;     } } On mywebsite conf file:     server {     charset

Re: Setting Charset on Nginx PHP virtual host

2019-08-02 Thread Francis Daly
On Fri, Aug 02, 2019 at 03:11:05PM +0200, Vincent M. wrote: Hi there, > So I tried in http with empty charset_map: >         charset_map iso-8859-1 utf-8 { } > But special characters like é are displayed with ? It seems to work for me as-is. What is different for you? "work for me" means "the u

Re: Setting Charset on Nginx PHP virtual host

2019-08-02 Thread Vincent M.
Hello Francis, You are right, the charset map is missing and specified in the nginx log error file: /2019/08/02 12:53:42 [error] 19151#19151: *28013 no "charset_map" between the charsets "UTF-8" and "iso-8859-1" while reading response header from upstream, client: .../ I have found 3 chars

Re: Setting Charset on Nginx PHP virtual host

2019-08-01 Thread Francis Daly
On Wed, Jul 31, 2019 at 05:29:37PM +0200, Vincent M. wrote: Hi there, > I have specified charset and overried_charset on both server and location > and yet, it was still sending headers in UTF-8. What does the error log say? Is there something like no "charset_map" between the charsets "utf-

Setting Charset on Nginx PHP virtual host

2019-07-31 Thread Vincent M.
Hello, I tried to set the Charset of a virtual host like this: server {     root /var/www/mywebsite.com; ...     charset iso-8859-1;     override_charset on; ...     location ~ \.php$ {     include snippets/fastcgi-php.conf;     fastcgi_pass unix:/var/