summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-22 16:20:34 +0000
committeralecpl <alec@alec.pl>2009-06-22 16:20:34 +0000
commitecb9fb058da8d0f5a8e59402c1c1ced21122cbc5 (patch)
tree9a8a3fb2aa33ffdae6616b73cbecc34cd9a19dbc /program/steps
parent11b80e9e33e84c90852a46a5be6d5ff414b37661 (diff)
- use RCMAIL_CHARSET instead of hardcoded 'utf-8'
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/addressbook/export.inc2
-rw-r--r--program/steps/mail/rss.inc2
-rw-r--r--program/steps/mail/search.inc4
-rw-r--r--program/steps/mail/sendmail.inc2
-rw-r--r--program/steps/mail/spell_pspell.inc2
5 files changed, 6 insertions, 6 deletions
diff --git a/program/steps/addressbook/export.inc b/program/steps/addressbook/export.inc
index d49fbe997..101006f87 100644
--- a/program/steps/addressbook/export.inc
+++ b/program/steps/addressbook/export.inc
@@ -26,7 +26,7 @@ $result = $CONTACTS->list_records();
// send downlaod headers
send_nocacheing_headers();
-header('Content-Type: text/x-vcard; charset=UTF-8');
+header('Content-Type: text/x-vcard; charset='.RCMAIL_CHARSET);
header('Content-Disposition: attachment; filename="rcube_contacts.vcf"');
while ($result && ($row = $result->next())) {
diff --git a/program/steps/mail/rss.inc b/program/steps/mail/rss.inc
index 72317c68f..667a3487d 100644
--- a/program/steps/mail/rss.inc
+++ b/program/steps/mail/rss.inc
@@ -49,7 +49,7 @@ $sort_order = 'DESC';
// Send global XML output
header('Content-type: text/xml');
-echo '<?xml version="1.0" encoding="UTF-8"?>
+echo '<?xml version="1.0" encoding="'.RCMAIL_CHARSET.'"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc
index 8d24460bc..d62b128d3 100644
--- a/program/steps/mail/search.inc
+++ b/program/steps/mail/search.inc
@@ -21,8 +21,8 @@ $IMAP->set_search_set(NULL);
$_SESSION['page'] = 1;
// using encodeURI with javascript "should" give us
-// a correctly UTF-8 encoded query string
-$imap_charset = 'UTF-8';
+// a correctly encoded query string
+$imap_charset = RCMAIL_CHARSET;
// get search string
$str = get_input_value('_q', RCUBE_INPUT_GET);
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 72f072a49..d550a422d 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -311,7 +311,7 @@ if (!$savedraft) {
// generic footer for all messages
if (!empty($CONFIG['generic_message_footer'])) {
$footer = file_get_contents(realpath($CONFIG['generic_message_footer']));
- $footer = rcube_charset_convert($footer, 'UTF-8', $message_charset);
+ $footer = rcube_charset_convert($footer, RCMAIL_CHARSET, $message_charset);
}
}
diff --git a/program/steps/mail/spell_pspell.inc b/program/steps/mail/spell_pspell.inc
index 0722b5fa0..8e574a62d 100644
--- a/program/steps/mail/spell_pspell.inc
+++ b/program/steps/mail/spell_pspell.inc
@@ -49,7 +49,7 @@ $words = preg_split('/[ !"#$%&()*+\\,-.\/\n:;<=>?@\[\]^_{|}]+/', $text, NULL, P
$plink = pspell_new(get_input_value('lang', RCUBE_INPUT_GET), null, null, RCMAIL_CHARSET, PSPELL_FAST);
// send output
-$out = '<?xml version="1.0" encoding="UTF-8"?><spellresult charschecked="'.rc_strlen($text).'">';
+$out = '<?xml version="1.0" encoding="'.RCMAIL_CHARSET.'"?><spellresult charschecked="'.rc_strlen($text).'">';
$diff = 0;
foreach ($words as $w) {