Re: insert utf8 values
Posted by: David Engler
Date: March 02, 2011 11:43PM

I tried that also, it didn't help

Eventually I used:

mysql_connect(localhost,$username,$password);
mysql_set_charset('utf8');
@mysql_select_db($database) or die( "Unable to select database");

$sql = "insert into translation (queue_id, lang_id, subject, text) values ($queue_id, $lang_id, '$subject', '$content')";

$res = mysql_query($sql);

mysql_close();

and it worked fine

Thank you

Options: ReplyQuote


Subject
Views
Written By
Posted
6910
March 01, 2011 07:28PM
1930
March 02, 2011 10:26PM
Re: insert utf8 values
1800
March 02, 2011 11:43PM


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.