xref: /PHP-8.4/ext/iconv/tests/gh7980.phpt (revision 86c196ba)
1--TEST--
2Bug GH-7980 (Unexpected result for iconv_mime_decode)
3--EXTENSIONS--
4iconv
5--FILE--
6<?php
7$subject = '=?windows-1258?Q?DSI_Charg=E9_de_Formation_Jean_Dupont?= <jdupont@example.fr>';
8var_dump(iconv_mime_decode($subject, ICONV_MIME_DECODE_STRICT, 'UTF-8'));
9?>
10--EXPECT--
11string(57) "DSI Chargé de Formation Jean Dupont <jdupont@example.fr>"
12