summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weber2012-03-22 15:19:54 +0000
committerChristian Weber2012-03-22 15:19:54 +0000
commit287d11f9e4ab47084c83a086baa15dcc057a8a07 (patch)
treea10d93311b3de974c37ae45dc7e5b2ab7a70ec47
parent4c4deb5825137578cdbf512105ef918af754cbc0 (diff)
downloaditools-287d11f9e4ab47084c83a086baa15dcc057a8a07.tar.gz
itools-287d11f9e4ab47084c83a086baa15dcc057a8a07.tar.bz2
itools-287d11f9e4ab47084c83a086baa15dcc057a8a07.zip
mysql wants latin1, not iso-8859-1
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index c85e2ed..ba0606c 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -65,7 +65,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('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' => 'utf8')));
unset($this->_defaultconfig); # to shorten ED() output
$this->_p = $p;