Salem Salem - 1 year ago 82
PHP Question

Reading 1256ara encoding (Arabic letters) from sybase using php-apache2

I'm facing a problem reading arabic letters from a sybase database on php-apache2. I'm using an ODBC connector, and the select query returns only english letters.

My problem is I can't modify the database encoding.
I tried using

, and setting charset in the header with no luck.

Any suggestions would be appreciated.

Answer Source

Finally solved it! In my select query i cast the column containing Arabic characters as varbinary, then i used iconv('windows-1256','utf-8,$stringToDisplay)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download