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.

customize cpsrvd http headers

Discussion in 'General Discussion' started by z4y4ts, Jul 11, 2007.

  1. z4y4ts

    z4y4ts Registered

    Joined:
    Jul 3, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi, All!

    I'm use cPanel, 11.6.0-R and some of my clients use russian cPanel skin. After some of recent updates cpsrvd began to send http responses with "Content-Type: text/html; charset=ISO-8859-1" but user's cPanel skin encoded use windows-1251 encoding.

    So is there any way how I can customize http header "Content-Type:" sended by cpsrvd?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    There is a lengthy discussion about character sets on the Theme Development list:

    http://mail.cpanel.net/mailman/private/themedev_cpanel.net/Week-of-Mon-20070521/000108.html

    Essentially it boils down to if you are setting the character set (to UTF-8 for example), you would include this in your theme:

    HTML:
    <cpanelheader Content-type=text/html; charset=utf-8>
    Note that using a Windows character set may not be a good idea for clients using an OS other than Windows (such as Linux or Mac OS X).
     
  3. remik

    remik Guest

    Hi.
    I have the same problem. The link is private and I cannot access the discussion without a login and password.
    Where should I add the above line? Adding it to std_header.html doesn't work.

    Remik
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page