引用:
原帖由 Hex 于 2008-6-10 15:54 发表 
HTML 也要使用 UTF-8 编码,并用 UTF-8 编码保存文件。
我的是UTF8,
引用:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh" dir="ltr">
<head profile="http://www.w3.org/2000/08/w3c-synd/#">
<meta http-equiv="Content-Type" c />
<meta name="keywords" c />
<meta name="DEscription" c />
<meta name="Author" c />
<title>New Page | xHTML1.0 Transitional</title>
<link rel="shortcut icon" href="favicon.ico" />
<!--CSS&JS is here
<link rel="stylesheet" type="text/css" href="css.css" />
<script type="text/javascript" src="js.js"></script>
-->
</head>
<body>
<?php foreach($results as $row):?>
<?=$row->book_author?>
<?php endforeach;?>
<?=$hi?>
</body>
</html>
换成下面这文档头:
[php]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" c />
<title>无标题文档</title>
</head>
<body>
<?php foreach($results->result() as $row):?>
<?=$row->book_publisher_year?>
<?php endforeach;?>
<?=$hi?>
</body>
</html>
[/php]
[
本帖最后由 默生 于 2008-6-10 17:42 编辑 ]