php+wml 电脑浏览器显示全部乱码解决办法

WBOY
Release: 2016-06-13 13:46:01
Original
845 people have browsed it

php+wml 电脑浏览器显示全部乱码
  //自定义文件
  require("common/Inc/conn.inc.php");
conndb();
$root="D:/www/htdocs/";
require("function.php");
$title="东北高师就业联盟网手机版";
  //输出wml头文件
  //Header("Content-type: text/vnd.wap.wml");
  //Header("Cache-Control: no-cache, must-revalidate");
  //Header("Pragma: no-cache");
  echo ("");
  echo ("");
  echo ("");
?>

网站在wap.dsjyw.net
求救啊!!怎么会在电脑浏览器上乱码呢

------解决方案--------------------
检查一下网页编码是否是UTF-8
------解决方案--------------------
经检查,是文件编码的原因,用editplus打开后,另存为utf-8格式,就可以了
------解决方案--------------------
肯定还有漏掉的,

要把所用到的文件,都另存为utf-8

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template