Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Where to set the default page encoding ?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jellday, Apr 12, 2016.

  1. jellday

    jellday New Member

    26
    2
    3
    May 31, 2014
    Ratings:
    +3
    Local Time:
    12:45 PM
    1.4.6
    5.5
    It seems that when the browser visit my site, all pages are set to UTF, I have to manually change the browser's encoding to display properly. The meta element setting is correct in each page.
    I guess it must be some default encoding setting mislead the browser. Where is it?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    2:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    you might be looking for /usr/local/nginx/conf/nginx.conf line for
    Code (Text):
    charset utf-8;
     
  3. jellday

    jellday New Member

    26
    2
    3
    May 31, 2014
    Ratings:
    +3
    Local Time:
    12:45 PM
    1.4.6
    5.5
    Now everything is good. Thx.