I got the solution 🙂
Here is the code for setting collation as utf-8 in adodb connection.....
function dbconnect()
{
global $dbHostName;
global $dbUserName;
global $dbPassword;
global $dbName;
global $driver;
$db = NewADOConnection($driver);
$db->Connect($dbHostName, $dbUserName,$dbPassword,$dbName);
$db->EXECUTE("set names 'utf8'");
return $db;
}
Now I am able to insert langugagewise data into my database...🙂
Just two changes needed in order to insert data for particular language(like french,chinese etc..).
In the table change the collation of the fields to "utf8_general_ci"
During the connection of the database just add one line if you are using adodb for connection
[B]$db->EXECUTE("set names 'utf8'");[/B]
or if you are using traditional mysql then you have to write
[B]mysql_query("set names 'utf8'",$con);[/B]
And that's it.... :)
Hope this will be helpful to someone facing same problem....