我在调用了链接数据库的文件时输出的结果为乱码请问时什么问题.链库文件:
<?php
$LocalServer="127.0.0.1";
$DataName="tengda";
$UserID="root";
$UserPass = "root";
$conn=mysql_pconnect($LocalServer,$UserID,$UserPass) or die("not null");
mysql_select_db($DataName);
mysql_query("set names utf-8");
?>
前面的文件:
<?php
include("../10-22/dbcoon.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" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
产品分类:
  <select name="pclass" id="pclass">
      <?php 
   $sql = "select distinct  productclass from product";
$rs = mysql_query($sql);
while($row=mysql_fetch_array($rs))
{
  ?>
<option value="<?php echo $row["productclass"];?>">
        <?php echo $row["productclass"];?>
        </option><?php } ?>
  </select>

      价格区间:
      <select name="pprice" id="pprice">
      </select>
      产品名称:
      <input type="text" name="textfield" id="textfield" />
      <input type="submit" name="button" id="button" value="查询" />
</form>
</body>
</html>
输出的是乱码:
请问是什么问题: