diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-06-25 09:38:44 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-06-25 09:38:44 +0000 |
| commit | d43f051d9b3d4bdb15ec8d0b6c9cd95eaa85b073 (patch) | |
| tree | 6a10398dd77e6949c6d0beca52f0283fa636a7e5 | |
| parent | a79b88a7ac4707b8f3284a0e519b715072127468 (diff) | |
Assume ISO-8859-1 encoding of mail messages by default (Patch #1483839)
git-svn-id: https://svn.roundcube.net/trunk@264 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc index 26fd545a7..bf23f7165 100644 --- a/roundcubemail/program/include/rcube_imap.inc +++ b/roundcubemail/program/include/rcube_imap.inc @@ -50,6 +50,7 @@ class rcube_imap var $page_size = 10; var $sort_field = 'date'; var $sort_order = 'DESC'; + var $default_charset = 'ISO-8859-1'; var $delimiter = NULL; var $caching_enabled = FALSE; var $default_folders = array('inbox', 'drafts', 'sent', 'junk', 'trash'); @@ -1716,8 +1717,9 @@ class rcube_imap return $out; } - else - return $input; + + // no encoding information, defaults to what is specified in the class header + return rcube_charset_convert($input, $this->default_charset); } @@ -1793,7 +1795,8 @@ class rcube_imap if (is_array($ctype_param) && !empty($ctype_param['charset'])) return rcube_charset_convert($body, $ctype_param['charset']); - return $body; + // defaults to what is specified in the class header + return rcube_charset_convert($body, $this->default_charset); } |
