Hi all,
The webpages for our center need to be encoded via Unicode. The pages were previously static, that is each page had the header info hardcoded onto it's own file.
I've recently put the header code for all the pages into a remote function (do_html_header) that is called via php from the pages.
So the actual code for any given page looks something like this...
filename: index.php
<?
// standard database connect and include calls
db_connect();
include_fns();
//call the html code to do the page header
do_html_header("some title");
.....
?>
the function resides in a seperate document and looks something like this...
function do_html_header($title = '')
{
// print an HTML header
?>
<html>
<head>
<title><?=$title?></title>
<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
<LINK REL=stylesheet TYPE="text/css" HREF="../style2.css">
</head>
<?
}
the problem is that the pages all encode via western european (windows), even though when i "view source" the call to unicode is there. if i reset the encoding to unicode, and then reload the page, it reverts to western european (windows)
my question is, is the fact that the charset is in a remote location responsible, and if so, is there any fix short of going back to including seperate header information on each file?
Thanks!
Arlo