0
我从数据库中获取大量文本信息,但在使用PHP回显时,字符正在更改。我如何让它显示正常的东西?谢谢。为什么PHP中的这些字符被转换?
//makes database connection and queries the db
$row = mysqli_fetch_array($result);
echo $row['text'];
� inside has a question mark
\ before every apostrophe
and it\\\'s
更多...
您能否给我们提供更多从数据库中检索到的不良数据的例子? – Wes 2011-04-15 04:39:26
你的数据库是什么字符集?文本从哪里插入到数据库中?什么charset是你的HTML页面? – alex 2011-04-15 04:40:58
@alex utf8文本正在被用户插入。 – steve 2011-04-15 04:44:17