imap_mutf7_to_utf8

(PHP 5 >= 5.3.0, PHP 7)

imap_mutf7_to_utf8Decode a modified UTF-7 string to UTF-8

Descrierea

imap_mutf7_to_utf8 ( string $in ) : string|false

Decode a modified UTF-7 (as specified in RFC 2060, section 5.1.3) string to UTF-8.

Notă:

This function is only available, if libcclient exports utf8_to_mutf7().

Parametri

in

A string encoded in modified UTF-7.

Valorile întoarse

Returns in converted to UTF-8, sau false în cazul eșecului.

A se vedea și

add a note add a note

User Contributed Notes 1 note

up
0
djmaze at snappymail dot eu
2 years 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