summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorUrban Müller2012-04-24 14:18:21 +0000
committerUrban Müller2012-04-24 14:18:21 +0000
commit9c523156bbc9d34ff2a16ec3b2c345951fc55287 (patch)
treeb03409e32574aaa76f78aef8158030d6a8cea5d8 /it_dbi.class
parent177de5290677a71fe95e5264f1f21fad9cc7c469 (diff)
downloaditools-9c523156bbc9d34ff2a16ec3b2c345951fc55287.tar.gz
itools-9c523156bbc9d34ff2a16ec3b2c345951fc55287.tar.bz2
itools-9c523156bbc9d34ff2a16ec3b2c345951fc55287.zip
merged it_html::fix_encoding in it::any2utf8
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index ced925b..512cd4c 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -249,7 +249,7 @@ function _set($tags, $allfields = false)
else if ($allfields || ($value !== $this->_data[$field]))
{
if ($this->_p['charset'] == "utf8") # NOTE: Mysql charset is simply utf8, not utf-8
- $value = it_html::fix_encoding($value);
+ $value = it::any2utf8($value, "error in db-field $field");
$r[] = "`$field`=".(isset($value) ? $this->escape_string($value) : 'NULL');
}
}