Changeset 1401 for trunk/expressoMail1_2
- Timestamp:
- 09/11/09 16:26:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r1397 r1401 196 196 else if (strpos(strtolower($string), '=?utf-8') !== false) 197 197 { 198 $elements = imap_mime_header_decode($string); 199 for($i = 0;$i < count($elements);$i++) { 198 $elements = imap_mime_header_decode($string); 199 200 for($i = 0;$i < count($elements);$i++) 201 { 200 202 $charset = strtolower($elements[$i]->charset); 201 $text =$elements[$i]->text; 202 if(!strcasecmp($charset, "utf-8") || 203 !strcasecmp($charset, "utf-7")) { 203 $text = $elements[$i]->text; 204 205 if(!strcasecmp($charset, "utf-8") || !strcasecmp($charset, "utf-7")) 206 { 204 207 $decoded .= $this->functions->utf8_to_ncr($text); 205 208 } 206 209 else 207 $decoded .= $this->htmlspecialchars_encode(iconv($charset, "iso-8859-1", $text)); 210 { 211 if( strcasecmp($charset,"default") ) 212 $decoded .= $this->htmlspecialchars_encode(iconv($charset, "iso-8859-1", $text)); 213 else 214 $decoded .= $this->htmlspecialchars_encode($text); 215 } 208 216 } 209 217 return $decoded;
Note: See TracChangeset
for help on using the changeset viewer.