如何在mysql中存储阿拉伯语字体

i WANT TO store Arabic words in my table of dictionary.

i am using a java script code for typing Arabic in a text box.

it is working fine.

After insertion into table when i get all the records, it properly shows Arabic words.

but in my table Arabic words store in this format

change your table(columns) collation to utf8_general_ci and also in your html add

   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

You have to do the following things: 1.set the UTF-8 in your php script,like this:

 ini_set('default_charset', 'utf-8');

2.make the Collation as utf8_general_ci in database.

Set:

MySQL table charset to utf8, collation to utf8_general_ci or utf8_unicode_ci. and in your code(connection string) also set charset to utf8.

you should ensure that the html support arabic text by adding

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

you should also check the encoding in your database , it should be utf8_unicode_ci or ther simalar encoding