From 2b47f07b04bd346539bf10347e72a9a92873120c Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 6 May 2010 16:47:07 -0300 Subject: Charset conversion fixes --- classes/PhpIsisDb.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'classes/PhpIsisDb.php') diff --git a/classes/PhpIsisDb.php b/classes/PhpIsisDb.php index 1f64075..50fdf49 100644 --- a/classes/PhpIsisDb.php +++ b/classes/PhpIsisDb.php @@ -131,7 +131,7 @@ class PhpIsisDb implements IsisDb { * @return * String converted to UTF-8. */ - function charset($data) { - return iconv($data, $this->format['db']['charset'], 'UTF-8'); - } + function charset(&$data) { + $data = iconv($this->format['db']['charset'], 'UTF-8', $data); + } } -- cgit v1.2.3