Posted on 2000-03-01
I am using PHP4 as module on Apache 1.3.9 on RedHat Linux.
I have the following problem. Allmost all pages on this server are
in ISO-8859-2 character set. I have in HTML files the following
line in head section.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
The HTML files served switch to the right character set in Netscape.
I use exactly the same syntax in my PHP files but those files are served
as ISO-8859-1 character set files regardless what I write in Content-Type.
I have found the solution in which I have to put the follwing code in
the begining of every PHP file:
header ("Content-type: text/html; charset=iso-8859-2");
I don't like this solution because I have to put the code in the begining
of every file.
How can I convince PHP to acknowledge meta tags in PHP files? Is
it possible that Netscape is doing this things wrong and PHP makes