Arabic characters coming from MySQL
Posted by: Amir Khan
Date: November 09, 2010 03:43PM

I am having problemshowing Arabic characters on a PHP web page when data is coming from MySQL.

I have tried:

1. Setting Collations on DB/Table/Columns to the following utf8 settings one after another:
- utf8_unicode_ci
- utf8_general_ci

2. Also when do the following after DB connection it show question marks instead of gibberish characters:
mysql_query("SET NAMES cp1256");
mysql_query("SET CHARACTER SET cp1256");

The regular Arabic data displays fine if its not coming from MySQL.

Please let me know what step do I need to take.
Thanks in advance.

Options: ReplyQuote


Subject
Views
Written By
Posted
Arabic characters coming from MySQL
3574
November 09, 2010 03:43PM
1558
November 10, 2010 11:28PM


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.