Utf 8 黑钻石字符集=iso-8859-1 utf 8版本

Utf 8 黑钻石字符集=iso-8859-1 utf 8版本,utf-8,character-encoding,Utf 8,Character Encoding,我仍然对黑钻石有意见 请看这一页: 这些字符在页面上非常有用,但在搜索框中键入“LFLB”,您将看到钻石再次出现 这在我的标题中: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 我还做了一个mysql_client_encoding()检查,结果显示是Latin1 我还需要做什么?使用 header("Content-Type: text/html; charset=is

我仍然对黑钻石有意见

请看这一页:

这些字符在页面上非常有用,但在搜索框中键入“LFLB”,您将看到钻石再次出现

这在我的标题中:

  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

我还做了一个mysql_client_encoding()检查,结果显示是Latin1

我还需要做什么?

使用

header("Content-Type: text/html; charset=iso-8859-1");

在ajax响应或您网站上的任何一般响应中。

请提供在sentif(isset($\u GET['keyword']){$keyword=mysql\u real\u escape\u string(trim(strtoupper(htmlentities)(strip_标签($\u GET['keyword']))之前如何保存、获取或修改字符串的信息;不,我的意思是,对结果字符串。$result=mysql\u query($query)或die(“无法执行livesearch”);if($result){if(mysql\u impacted\u rows()!=0){while($row=mysql\u fetch\u array($result)){