The language is not displayed on the page
I am trying to create a page that displays content in a different language as soon as the content is only displayed on the page . ...
<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>
I have included this in the meta tag, and if my reading of this tag is correct, it should display the content in Arabic. I'll give a screenshot of my problem below.
+3
user4392178
source
to share
1 answer
for the Arabic vision of the Quran page add lang="ar"
to the tag html
, for example:
<html lang="ar">
...
</html>
or try this when you connect to your database first: 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');
+2
source to share