• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

page encoding wrong

P

perler

Guest
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
 
ok, problem solved, it was a default_charset=8859-1 statement in php.ini which took precedence over the meta tag

PAT
 
Back
Top