我有 2 个 php 文件。index.php和preview.php
在顶部index.php我有这个代码
<meta http-equiv='Content-Type' content='Type=text/html; charset=utf-8'>
当我尝试使用以下内容加载内容index.php时preview.php:
function preview_content(id)
{
var thebutton = '#previewButton';
$(thebutton).hide();
$('#preview_area').load('preview.php?id='+id);
}
加载了这样的字符的内容M�laga CF
我试图将相同的utf-8代码放在顶部,preview.php但没有任何改变。有没有办法用UTF-8字符集检索内容?