summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian A. Weber2017-11-30 15:16:15 +0100
committerChristian A. Weber2017-11-30 15:16:15 +0100
commit1c08b5b21792e5d8b8c44c13b0cddf36ef950db7 (patch)
tree66218a561ee42410f5bac71f533f78602de59496
parenta5fdef178ddda946429d95616266d8fec7f73a1a (diff)
downloaditools-1c08b5b21792e5d8b8c44c13b0cddf36ef950db7.tar.gz
itools-1c08b5b21792e5d8b8c44c13b0cddf36ef950db7.tar.bz2
itools-1c08b5b21792e5d8b8c44c13b0cddf36ef950db7.zip
use utf8mb4 as default characterset for mysql connection
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 8fb32f0..2c71ff5 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -70,7 +70,7 @@ function it_dbi($p = array(), $query = null)
$p += $dp;
# Combine our settings with user's defaults and class defaults
- $p += (array)$GLOBALS['it_dbi_defaultconfig'] + array('db' => $GLOBALS['ULTRADB']) + $this->_defaultconfig + array('charset' => strtr(strtolower(ini_get('default_charset')), array('iso-8859-1' => 'latin1', 'utf-8' => 'utf8')));
+ $p += (array)$GLOBALS['it_dbi_defaultconfig'] + array('db' => $GLOBALS['ULTRADB']) + $this->_defaultconfig + array('charset' => strtr(strtolower(ini_get('default_charset')), array('iso-8859-1' => 'latin1', 'utf-8' => 'utf8mb4', 'utf8' => 'utf8mb4')));
unset($this->_defaultconfig); # to shorten ED() output
$this->_p = $p;