昨天想给一个PHP页面加一个title,
一开始是这样写的:<?php //some code echo "<title>连接成功</title>"; echo "Connect Successful!Forward To Option.html"; //some code?>后来发现是编码问题,在之前加了一句echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";问题就解决了~本文共 321 字,大约阅读时间需要 1 分钟。
昨天想给一个PHP页面加一个title,
一开始是这样写的:<?php //some code echo "<title>连接成功</title>"; echo "Connect Successful!Forward To Option.html"; //some code?>后来发现是编码问题,在之前加了一句echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";问题就解决了~转载于:https://www.cnblogs.com/phpfreshman/archive/2012/08/14/2637640.html