functions.inc.php - imap_8bit and UTF-8
Posted: Fri Dec 12, 2014 11:29 am
Why the body text is encoded imap_8bit when we use utf-8?
Not enough to encode header and subject ?
https://github.com/s9y/Serendipity/blob ... ns.inc.php
533 Following
Code: Select all
$maildata['headers'][] = 'Content-Type: text/plain; charset=' . LANG_CHARSET;
$maildata['headers'][] = 'Auto-Submitted: auto-generated';
if (LANG_CHARSET == 'UTF-8') {
if (function_exists('imap_8bit')) {
$maildata['headers'][] = 'Content-Transfer-Encoding: quoted-printable';
$maildata['message'] = imap_8bit($maildata['message']);
} else {
$maildata['headers'][] = 'Content-Transfer-Encoding: base64';
$maildata['message'] = chunk_split(base64_encode($maildata['message']));
}
}
https://github.com/s9y/Serendipity/blob ... ns.inc.php
533 Following