| | |
| | | static $iconv_options = null; |
| | | static $mbstring_list = null; |
| | | static $mbstring_sch = null; |
| | | static $conv = null; |
| | | |
| | | $to = empty($to) ? RCUBE_CHARSET : $to; |
| | | $from = self::parse_charset($from); |
| | |
| | | return utf8_encode($str); |
| | | } |
| | | else { |
| | | user_error("No suitable function found for UTF-8 encoding", E_USER_WARNING); |
| | | trigger_error("No suitable function found for UTF-8 encoding"); |
| | | } |
| | | } |
| | | |
| | |
| | | return utf8_decode($str); |
| | | } |
| | | else { |
| | | user_error("No suitable function found for UTF-8 decoding", E_USER_WARNING); |
| | | trigger_error("No suitable function found for UTF-8 decoding"); |
| | | } |
| | | } |
| | | |