Translation: Arabic Text and Mysql and PHP
Posted by: Ibrahim Khalil
Date: May 09, 2008 05:28PM

السلام عليكم:

لاستخدام النص العربي مع
mysql و php
بشكل سليم عند القراء والكتابة والترتيب الأبجدي
sorting
يجب مراعاة ما يلي:

1- MySQL charset: UTF-8 Unicode (utf8)
2- MySQL connection collation: utf8_general_ci
3- your database and table collations are set to: utf8_general_ci or utf8_unicode_ci

ثم أضف هذا الكود إلى السكريبت عند إجراء اتصال بقاعدة البيانات:

mysql_query("SET NAMES 'utf8'");
mysql_query('SET CHARACTER SET utf8');

بالتوفيق, وشكراً..



Edited 1 time(s). Last edit at 05/09/2008 05:30PM by Ibrahim Khalil.

Options: ReplyQuote


Subject
Views
Written By
Posted
83880
May 09, 2008 05:21PM
Translation: Arabic Text and Mysql and PHP
10329
May 09, 2008 05:28PM
4693
April 29, 2009 03:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.