Changeset 4d4264c in github for program/include/main.inc


Ignore:
Timestamp:
Aug 10, 2006 3:07:43 AM (7 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
a06be98
Parents:
c0e9128
Message:

Fixed charset problems with folder renaming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/main.inc

    raade7b9 r4d4264c  
    910910  if ($from=='UTF-7') 
    911911    $str = rcube_charset_convert(UTF7DecodeString($str), 'ISO-8859-1'); 
    912   else if ($from=='ISO-8859-1' && function_exists('utf8_encode')) 
     912  else if (($from=='ISO-8859-1') && function_exists('utf8_encode')) 
    913913    $str = utf8_encode($str); 
    914914  else if ($from!='UTF-8') 
     
    920920  // encode string for output 
    921921  if ($to=='UTF-7') 
    922     return UTF7EncodeString($str); 
     922    return UTF7EncodeString(rcube_charset_convert($str, 'UTF-8', 'ISO-8859-1')); 
    923923  else if ($to=='ISO-8859-1' && function_exists('utf8_decode')) 
    924924    return utf8_decode($str); 
Note: See TracChangeset for help on using the changeset viewer.