Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UTF-charset
#1
Hello.

For if it´s usable for someone.

I had an issue with utf-8 charset in the inserts - select to Mysql database.

I solved this by inserting this line:

mysql_query ("SET NAMES 'utf8'");

this way in odm-init.php:
********************************************
/*
* Connect to Database
*/
$GLOBALS['connection'] = mysql_connect(DB_HOST, DB_USER, DB_PASS) or die ("Unable to connect: " . mysql_error());
mysql_query ("SET NAMES 'utf8'");
$db = mysql_select_db(DB_NAME, $GLOBALS['connection']);

...
...
**************************************************************************


Forum Jump:


Users browsing this thread: 1 Guest(s)