The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache don't sees charset

Discussion in 'EasyApache' started by nyanhost, Mar 24, 2014.

  1. nyanhost

    nyanhost Active Member

    Joined:
    Nov 4, 2013
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. nyanhost

    nyanhost Active Member

    Joined:
    Nov 4, 2013
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Where I can check "mod_charset" in the EasyApache?
     
  3. nyanhost

    nyanhost Active Member

    Joined:
    Nov 4, 2013
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    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
     
  4. nyanhost

    nyanhost Active Member

    Joined:
    Nov 4, 2013
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    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.
     
  5. Shavaun

    Shavaun Well-Known Member

    Joined:
    Aug 15, 2013
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    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!
     
Loading...

Share This Page