Community Support for OpenDocMan (Deprecated)

Full Version: UTF-charset
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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']);