private function _convertEncoding($from, $to, $string) { return $string; if (function_exists('iconv')) { $res = iconv($from, $to, $string); if (!$res) { throw new Lms_Exception("Unknown encoding '{$from}' or '{$to}'!"); return NULL; } return $res; } else { if (strtolower($to) == 'utf-8') { return Lms_Text::convert2utf($string, $from); } else { $_from = Lms_Text::getEncSymbol($from); $_to = Lms_Text::getEncSymbol($to); if ($_from == NULL || $_to == NULL) { return NULL; } } } }