Translation: Arabic Text and Mysql and PHP
السلام عليكم:
لاستخدام النص العربي مع
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.
Subject
Views
Written By
Posted
83880
May 09, 2008 05:21PM
Translation: Arabic Text and Mysql and PHP
10329
May 09, 2008 05:28PM
6436
May 24, 2008 03:34PM
4693
April 29, 2009 03:27AM
4869
July 23, 2009 09:33AM
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.