xref: /PHP-8.0/ext/mbstring/tests/bug76958.phpt (revision 74f26ba8)
1--TEST--
2Bug #76958: Broken UTF7-IMAP conversion
3--SKIPIF--
4<?php if(!extension_loaded('mbstring')) die('skip mbstring not loaded'); ?>
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