MySQL Forums
Forum List  »  Full-Text Search

Insert Arabic in the database
Posted by: Ahmed Nezar
Date: October 12, 2015 12:44PM

I want to add Arabic to the database by a PHP page I've set the database's collation to utf8_general_ci ad the tables as same as the database. And I used:
mysqli_query($conn, "SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'");
mysqli_query($conn, "SET NAMES 'utf8'");
mysqli_query($conn, "SET CHARACTER SET utf8");
mysqli_query($conn, "SET NAMES cp1256");
mysqli_query($conn, "set characer set cp1256");
And escaped the strings but no one had worked the data is like this
متي اصدر..

Options: ReplyQuote

Written By
Insert Arabic in the database
October 12, 2015 12:44PM
October 15, 2015 05:18PM

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.