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