xref: /PHP-7.3/ext/mbstring/tests/bug76958.phpt (revision 26f82a77)
1--TEST--
2Bug #76958: Broken UTF7-IMAP conversion
3--FILE--
4<?php
5
6$str = '&BCAEMARBBEEESwQ7BDoEOA-';
7echo mb_convert_encoding($str, 'UTF-8', 'UTF7-IMAP') . "\n";
8$str = 'Рассылки';
9echo mb_convert_encoding($str, 'UTF7-IMAP', 'UTF-8') . "\n";
10
11?>
12--EXPECT--
13Рассылки
14&BCAEMARBBEEESwQ7BDoEOA-
15