页面上的语言未显示

Language on page is not showing up

我正在尝试创建一个以不同语言显示内容的页面,但是内容在页面上仅显示为 ???????

<html xmlns="http://www.w3.org/1999/xhtml" lang="ar" xml:lang="ar">
<head>
<title>Arabic Quran</title>
<meta name="Author" content="Mustafaa Hanafi"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="Content-language" content="AR"/>
<meta name="Keywords" content="hadith bukhari, sahih Bukhari, the hadith of the prophet, ahadith, ahadees, hadees, hadist, saheeh bukhari, hadist bukhari, the hadith, bukhari hadith"/>
<meta name="Description" content="Sahih bukhari hadith narrations and translation in english, it is one the most authentic collection of hadith, view the hadith by narrator or search"/>
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>

我将其包含在元标记中,如果我对该标记的解读是正确的,它应该会以阿拉伯语显示内容。我将在下面提供我的问题的屏幕截图。

对于《古兰经》的阿拉伯语版本,将 lang="ar" 添加到 html 标签中,像这样

<html lang="ar">
...
</html>

或在首次连接到您的数据库时尝试此操作:SET CHARACTER SET utf8

$MySQL_Handle = mysqli_connect(HOSTNAME,DATABASE_USERNAME,DATABASE_PASSWORD,DATABASE_NAME) 
or die ( mysqli_error($MySQL_Handle) ); 

$sSQL= 'SET CHARACTER SET utf8'; 

mysqli_query($MySQL_Handle,$sSQL) 
or die ('Can\'t charset in DataBase');