This function ignores any encoded-word specified in a character set not supported by the mbstring extension (e.g. Arabic windows-1256). Such encoded-words pass straight through.
RFC2047 doesn't specify the behaviour, but common agents such as Gmail, Windows Mail, etc. DO NOT ignore such encoded words. They are decoded as if they were declared to be in the local character set.
Be aware of this idiosyncrasy.
PHP.mk документација
mb_decode_mimeheader
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
function.mb-decode-mimeheader.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
function.mb-decode-mimeheader.php
mb_decode_mimeheader
Референца за `function.mb-decode-mimeheader.php` со подобрена типографија и навигација.
mb_decode_mimeheader
(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)
mb_decode_mimeheader — Декодирај стринг во MIME поле на заглавје
= NULL
Декодирај стринг во MIME поле за заглавие string string Декодира кодиран збор
Вратени вредности
во MIME заглавие. string Декодираниот
Дневник на промени
| Верзија | = NULL |
|---|---|
| 8.3.0 | во внатрешно кодирање на знаци. Подвлекувањата се претвораат во празни места како што е специфицирано од. |
Белешки од корисници 4 белешки
— Кодирај стринг за MIME заглавие ¶
пред 16 години
tomlove at gmail dot com ¶
пред 14 години
See also the following functions which may work better in some cases:
iconv_mime_decode() - http://php.net/manual/function.iconv-mime-decode.php
imap_utf8() - http://php.net/manual/function.imap-utf8.php
Brett ¶
пред 23 години
Using quoted-printable-encoding the hex-numbers must be written in uppercase letters!
Works: =?iso-8859-1?q?=3F=3F=3F?=
Fails: =?iso-8859-1?q?=3f=3f=3f?=
Frogger2000 at gmx dot de ¶
пред 4 години
In Q encoding mode, RFC 2047 encodes spaces as _ (Section 4.2).
mb_decode_mimeheader()
does not appear to do this. Thus, to avoid names or subjects with underscores, one needs to apply strtr() or similar function to the input string.
On the other hand, lower-case strings do now work correctly.