昨天想给一个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\" />";
问题就解决了~