Re: A blank page shows when browsing some doc files in MS IE

From: Date: Mon, 22 Dec 2008 06:57:46 +0000
Subject: Re: A blank page shows when browsing some doc files in MS IE
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969379851@lists.php.net to get a copy of this message
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 <haohappy@gmail.com>: > 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

« previous php.doc (#969379851) next »