Hello,
To swap these two lines, you should modify the header method of class
chunkedhtml (which locates in phd/themes/php/chunkedhtml.php) :
Change
$header = <<<HEADER
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>$title</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
HEADER;
to
$header = <<<HEADER
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>$title</title> </head>
<body>
HEADER;
But is it really an IE bug? As far as I am concerned, the compiled
documents look good.
Regards,
Chen Gang
2008/12/22 Haohappy <[email protected]>:
> Hello,
>
> I used the PhD to generate html docs, but I got a blank page when I browsed
> some pages in Microsoft IE.
> It seemed the IE can't recognize the UTF-8 charset. So I look into the
> source of the html file:
>
> <title>类与对象(PHP 4)</title>
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
>
> These two lines of code work well in Firefox, Safari. But in IE, it should
> be changed to:
>
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
> <title>类与对象(PHP 4)</title>
>
> We need to put the <meta> before <title>, or the IE may not be able to
> recognize the right charset.
>
> Is there anyone help me resolve this problem? I don't know where is the
> 'template' of our PHP-doc files.
>
> The commands I used:
> php configure.php --with-lang=zh --enable-chm
> /home/www/php/bin/phd -d .manual.xml -L zh
>
> The html files were generated in the directory 'phpdoc-zh/chm/res' .
>
> Thanks in advance.
> --
> Hao Chen
> Beijing, China
>
--
PHP Internals Study
http://www.phpinternals.com