Ignore:
Timestamp:
Feb 4, 2006 2:08:10 PM (7 years ago)
Author:
roundcube
Message:

Bugfixes for encoding and sending with attachments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r114 r130  
    7272  // we can use the database for storing session data 
    7373  // session queries do not work with MDB2 
    74   if ($CONFIG['db_backend']!='mdb2' && is_object($DB) /* && $DB->db_provider!='sqlite' */) 
     74  if ($CONFIG['db_backend']!='mdb2' && is_object($DB)) 
    7575    include_once('include/session.inc'); 
    7676 
     
    710710     
    711711  // convert charset using iconv module   
    712   if (function_exists('iconv') && $from!='UTF-7' && $to!='UTF-7') { 
     712  if (0 && function_exists('iconv') && $from!='UTF-7' && $to!='UTF-7') { 
    713713    return iconv($from, $to, $str); 
    714714    } 
    715      
     715 
     716  $conv = new utf8(); 
     717 
    716718  // convert string to UTF-8 
    717719  if ($from=='UTF-7') 
     
    721723  else if ($from!='UTF-8') 
    722724    { 
    723     $conv = new utf8($from); 
     725    $conv->loadCharset($from); 
    724726    $str = $conv->strToUtf8($str); 
    725727    } 
     
    732734  else if ($to!='UTF-8') 
    733735    { 
    734     $conv = new utf8($to);     
     736    $conv->loadCharset($to); 
    735737    return $conv->utf8ToStr($str); 
    736738    } 
     
    961963        'messages' => 'rcmail_message_list', 
    962964        'messagecountdisplay' => 'rcmail_messagecount_display', 
     965        'quotadisplay' => 'rcmail_quota_display', 
    963966        'messageheaders' => 'rcmail_message_headers', 
    964967        'messagebody' => 'rcmail_message_body', 
Note: See TracChangeset for help on using the changeset viewer.