nyanhost

Active Member
Nov 4, 2013
28
0
1
cPanel Access Level
Root Administrator
Hello!

I have big problem. I use Apache 2.2.
23.03.2014 some sites have wrong charset.

Apache forcibly appoints charset UTF-8.

Apache ignored it meta-tag: <meta http-equiv="content-type" content="text/html; charset=windows-1251">.

How I can tracking it? Why Apache do it...
PHP is not fault, I tried receive html file.
 

nyanhost

Active Member
Nov 4, 2013
28
0
1
cPanel Access Level
Root Administrator
I added lines:
"AddCharset Windows-1251 .html .php .tpl"
"AddCharset utf-8 .html .php .tpl"

in the `Pre Main Include` and my problem is solved.
But why it directives don't added automatically?

Thank you and sorry of panic
 

nyanhost

Active Member
Nov 4, 2013
28
0
1
cPanel Access Level
Root Administrator
Something added it line in httpd.conf line "AddDefaultCharset Windows-1251" and my host by ip have bad charset "Ваш хос"...
Also I can't add koi8-r and koi8-u charset.

Please help me. It is very bad problem... Apache just ignored meta-tags if the encoding is not configured.
 

Shavaun

Well-Known Member
Aug 15, 2013
106
0
91
cPanel Access Level
Root Administrator
I'm not entirely certain if it will resolve your problem, but there is an option in EasyApache (Home >> Software >> EasyApache (Apache Update)) that might resolve your issue. The name of the option is "Charset Lite" and it is in the Exhaustive Options List in EasyApache.

If you select that option, the mod_charset_lite module will be installed into your Apache configuration. You can find more about that Apache module here: mod_charset_lite - Apache HTTP Server

(or mod_charset_lite - Apache HTTP Server if you are using Apache version 2.4)

I hope that helps!