DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   inserting arabic characters into mysql (http://www.daniweb.com/forums/thread93363.html)

roy-- Oct 17th, 2007 12:18 pm
inserting arabic characters into mysql
 
Hello,

I have looked everywhere on the web for a solution to this problem.

I am trying to store arabic characters into mysql via an html form.

i have set the meta charset to utf-8 and have tried mysql_query('set names 'utf=8'")

but still i get garbled characters in my table:

لربيلبي

Please advise!

fatihpiristine Oct 17th, 2007 2:58 pm
Re: inserting arabic characters into mysql
 
hope this help you
http://forums.mysql.com/read.php?103...7609#msg-97609

roy-- Oct 18th, 2007 3:34 am
Re: inserting arabic characters into mysql
 
thanks faith but that didnt help with my problem.

:/

fatihpiristine Oct 18th, 2007 10:42 am
Re: inserting arabic characters into mysql
 
did you try ansi_unicode_?

w_3rabi Oct 20th, 2007 10:20 am
Re: inserting arabic characters into mysql
 
i have something like this
i insert data into db
in the db the data is not readable
but when select it on a php page
everything goes well
so the application is running anyway

fatihpiristine Oct 20th, 2007 2:24 pm
Re: inserting arabic characters into mysql
 
is it local or remote located database?
if locale chech my.ini, find default charset and change it to ansi_unicode
collation in the same way.

roy-- Oct 21st, 2007 11:34 am
Re: inserting arabic characters into mysql
 
Got it working!

mysql_query("set names 'utf8'");

Thanks everyone for your replies..

Lotus-Sy Jan 11th, 2010 3:35 am
I Have same problem...
It is solved also when I put
mysql_query(


All times are GMT -4. The time now is 1:32 am.

Forum system based on vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2003 - 2010 DaniWeb® LLC