PHP 8.3.4 Released!

imap_mutf7_to_utf8

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

imap_mutf7_to_utf8Décode une chaîne de caractère UTF-7 modifié en UTF-8

Description

imap_mutf7_to_utf8(string $string): string|false

Décode une chaîne de caractères UTF-7 modifié (comme spécifié dans la RFC 2060, section 5.1.3) en UTF-8.

Note:

Cette fonction est seulement disponible, si libcclient exporte utf8_to_mutf7().

Liste de paramètres

string

Une chaîne de caractères encodé en UTF-7 modifié.

Valeurs de retour

Retourne string convertit en UTF-8, ou false si une erreur survient.

Voir aussi

add a note

User Contributed Notes 1 note

up
0
djmaze at snappymail dot eu
1 year ago
Currently imap_mutf7_to_utf8 doesn't support U+10000 and up.
You can test this with the teapot emoji 🫖
<?php
echo imap_utf8_to_mutf7('🫖') . "\n";
echo
bin2hex(imap_mutf7_to_utf8('&2D7e1g-')) . "\n";
?>
To Top