How to change the charset returned in http headers?
-
I am running nginx in a LEMP stack on a linode.
i would like to know how to update the charset parameters returned in the http headers.
I googled it but didn't come up with much.
I don't know where this is configured and would appreciate it if someone could point me in the right direction.
Thanks,
GPosted 1 year ago # -
Hi Gary
This might help, taken from a stackscript page:
Tell Linux where your sites are based and what character encoding to use.
export LOCALE=”en_GB” This locale example en_GB means English language/Great Britain. Change for your language and country.
To find your country code go here, then to see if that code is supported paste this:-
view sourceprint?
1.nano /usr/share/i18n/SUPPORTEDexport CHARSET=”UTF-8″ The charset UTF-8 is right for most of us.
Posted 1 year ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
