alecpl
2010-09-15 acbf0f5ee09ec7832c2747d98c94091c6dcd0a8a
- Fix: iconv doesn't support UTF7-IMAP


1 files modified
4 ■■■■ changed files
program/include/main.inc 4 ●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -205,8 +205,8 @@
  if ($from == $to || empty($str) || empty($from))
    return $str;
  // convert charset using iconv module
  if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') {
  // convert charset using iconv module
  if (function_exists('iconv') && $from != 'UTF7-IMAP' && $to != 'UTF7-IMAP') {
    if ($iconv_options === null) {
      // ignore characters not available in output charset
      $iconv_options = '//IGNORE';