1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

page encoding wrong

Discussion in 'Plesk for Linux - 8.x and Older' started by perler, Oct 2, 2007.

  1. perler

    perler Guest

    0
     
    hi,

    this is not really plesk related but maybe someone had the problem and knows a solution:

    i moved domains from a debian 3.1 server to a debian 4.0 server and migrated from plesk 7.5 to 8.2(.1 later)

    i realized, that the apache2 on the new box had a file

    /etc/apache2/conf.d/charset

    with

    AddDefaultCharset UTF-8

    in it, which overwrites the default encoding served by apache, which is ISO-8859-1. this broke some of the sites i serve, so i commented this out to have the same configuration like on the old server.

    now the strange thing:

    this site: http://unsersteuerberater.de worked on the old server, (see here: http://patsplanet.com/us/) it is UTF-8 encoded and the meta statement did overwrite the encoding statement in the header served by apache2.

    but on the new server, with the same settings and even with

    AddDefaultCharset off

    the server declares in the header, this is ISO-8859-1 and all browsers ignore the meta statement which declares this document is encoded in UTF-8 (for instance if you right click in firefox and then "View Page Info")

    any idea why this is?

    PAT
     
  2. perler

    perler Guest

    0
     
    ok, problem solved, it was a default_charset=8859-1 statement in php.ini which took precedence over the meta tag

    PAT
     
Loading...