PHP 5.5.16 is released

mb_decode_mimeheader

(PHP 4 >= 4.0.6, PHP 5)

mb_decode_mimeheaderDecodifica un string en el campo de cabecera MIME

Descripción

string mb_decode_mimeheader ( string $str )

Decodifica el string codificado por palabras str en cabecera MIME.

Parámetros

str

El string a decodificar.

Valores devueltos

El string decodificado en la codificación de caracteres interna.

Ver también

add a note add a note

User Contributed Notes 3 notes

up
0
Brett
2 years ago
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
up
0
tomlove at gmail dot com
4 years ago
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.
up
0
Frogger2000 at gmx dot de
12 years ago
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?=
To Top