From 58e3602a37cccab55f71fbf839b32fbc4322699c Mon Sep 17 00:00:00 2001 From: thomascube Date: Sat, 4 Feb 2006 19:08:10 +0000 Subject: Bugfixes for encoding and sending with attachments --- program/lib/utf8.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'program/lib/utf8.class.php') diff --git a/program/lib/utf8.class.php b/program/lib/utf8.class.php index adcf31bc2..c0bd0a73b 100644 --- a/program/lib/utf8.class.php +++ b/program/lib/utf8.class.php @@ -58,10 +58,10 @@ define("ERR_OPEN_MAP_FILE","ERR_OPEN_MAP_FILE"); //Class definition Class utf8{ - var $charset = CP1250; + var $charset = "ISO-8859-1"; var $ascMap = array(); var $utfMap = array(); - + // made PHP5 capable by RoundCube function __construct($charset="ISO-8859-1"){ $this->loadCharset($charset); @@ -75,7 +75,7 @@ Class utf8{ //Load charset function loadCharset($charset){ global $utf8_maps; - + if (!is_file($utf8_maps[$charset])) { $this->onError(ERR_OPEN_MAP_FILE, "Failed to open map file for $charset"); @@ -170,4 +170,5 @@ Class utf8{ } } -?> + +?> \ No newline at end of file -- cgit v1.2.3