svncommit
2009-01-05 6710a636170c73162560c94629656ddde85c7fa8
program/lib/utf8.class.php
@@ -55,7 +55,9 @@
  "ISO-8859-6" => UTF8_MAP_DIR . "/ISO-8859-6.map",
  "ISO-8859-7" => UTF8_MAP_DIR . "/ISO-8859-7.map",
  "ISO-8859-8" => UTF8_MAP_DIR . "/ISO-8859-8.map",
  "ISO-8859-9" => UTF8_MAP_DIR . "/ISO-8859-9.map"
  "ISO-8859-9" => UTF8_MAP_DIR . "/ISO-8859-9.map",
  "KOI8-R" => UTF8_MAP_DIR . "/KOI8R.map",
  "KOI8R" => UTF8_MAP_DIR . "/KOI8R.map"
  );
//Error constants
@@ -68,16 +70,10 @@
  var $ascMap = array();
  var $utfMap = array();
  // made PHP5 capable by RoundCube
  function __construct($charset="ISO-8859-1"){
    $this->loadCharset($charset);
  }
  
  //Constructor
  function utf8($charset="ISO-8859-1"){
    $this->__construct($charset);
  }
  //Load charset
  function loadCharset($charset){
    global $utf8_maps;
@@ -112,6 +108,7 @@
  function onError($err_code,$err_text){
    //print($err_code . " : " . $err_text . "<hr>\n");
    raise_error(array('code' => 500,
                      'type' => 'php',
                      'file' => __FILE__,
                      'message' => $err_text), TRUE, FALSE);
  }
@@ -177,4 +174,4 @@
}
?>
?>