How can I display Arabic characters in web page using php and sql server? The Arabic data is stored in the database (sql server). Now I want to use php to display that data on the web page. How can I do this?
+1
A:
Some SO archive may help you some ideas -
http://stackoverflow.com/questions/1198701/storing-and-displaying-unicode-string-using-php-and-mysql
http://stackoverflow.com/questions/1129808/arabic-text-displaying-in-webapp-without-db-changes
Wbdvlpr
2009-07-31 07:56:44
A:
Note: its php/mysql based example:
- Before you can store Arabic content in a database, you need to create a table. The following example demonstrates the CREATE syntax
- You need to make sure your browser supports the character set.
//assumed : connection to the database is open mysql_query("SET CHARACTER SET utf8"); mysql_query("SET NAMES 'utf8'"); // select records mysql_query("SELECT * FROM en_authors");
eanimator
2010-07-14 11:26:32