Changeset 4d4264c in github for program/include/main.inc
- Timestamp:
- Aug 10, 2006 3:07:43 AM (7 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- a06be98
- Parents:
- c0e9128
- File:
-
- 1 edited
-
program/include/main.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
raade7b9 r4d4264c 910 910 if ($from=='UTF-7') 911 911 $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')) 913 913 $str = utf8_encode($str); 914 914 else if ($from!='UTF-8') … … 920 920 // encode string for output 921 921 if ($to=='UTF-7') 922 return UTF7EncodeString( $str);922 return UTF7EncodeString(rcube_charset_convert($str, 'UTF-8', 'ISO-8859-1')); 923 923 else if ($to=='ISO-8859-1' && function_exists('utf8_decode')) 924 924 return utf8_decode($str);
Note: See TracChangeset
for help on using the changeset viewer.
