user4392178
user4392178

Reputation:

Language on page is not showing up

I am trying to create a page which displays the content in a different language how ever the content is displaying as only ??????? 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 included this in the meta tag and if my reading on this tag is correct it should make it display the content in Arabic. I will provide a screenshot with my issue below.

enter image description here

Upvotes: 3

Views: 121

Answers (1)

ZEE
ZEE

Reputation: 5869

for the page Arabic vision of Quran add lang="ar" to the html tag like so

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

or try this when first connect to your data base : 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');

Upvotes: 2

Related Questions