diff --git a/library/Director/DataType/DataTypeSqlQuery.php b/library/Director/DataType/DataTypeSqlQuery.php index 519042c0..84df22e5 100644 --- a/library/Director/DataType/DataTypeSqlQuery.php +++ b/library/Director/DataType/DataTypeSqlQuery.php @@ -66,6 +66,8 @@ class DataTypeSqlQuery extends DataTypeHook { if ($this->db === null) { $this->db = DbConnection::fromResourceName($this->settings['resource'])->getDbAdapter(); + // TODO: should be handled by resources: + $this->db->exec("SET NAMES 'utf8'"); } return $this->db;