ukdub
ukdub

Reputation: 153

does not support Arabic Content in webpage

Hi All I am creating Arabic website. But problem is that it does not support the Arabic content. it comes ???????????? . Even I put charset="utf-8" in .htaccess. I also put meta tag in every page. I saved the files as utf-8 support file format. Even I put there header('Content-Type: text/html; charset=utf-8'); MySQL Stored data shown in Arabic language but if I put some Arabic language in tag it wont support

Somebody have some idea regarding this because this is my firs Arabic website.

Upvotes: 1

Views: 4122

Answers (3)

mode00999
mode00999

Reputation: 11

Change the structure of the field Collation to: UTF8 general CI

Upvotes: 1

Mara Ormston
Mara Ormston

Reputation: 1856

You will likely want to add extra designations to your HTML. For example, if you are using HTML 5, it will look like:

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
:
your content here
:

Upvotes: 1

ScoRpion
ScoRpion

Reputation: 11474

Try with adding meta charset for arabic at the begning

<META HTTP-EQUIV="Content-Type"  CONTENT="text/html; CHARSET=iso-8859-6">

Or you may try it out with following steps :-

Displaying Arabic text using PHP

1. Don't use the short tags <? ?>. Use the full tags <?php ?>

2. Remove the quotes and semicolon from the first line and others that are outside the php tags
"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">";

3. Close the span tag <span lang='ar-kw'

4. Make sure save the file with utf-8 encoding. You might be saving it with another coding.

Upvotes: 0

Related Questions