Closed
Description
Description
PHP8.0.x or earlier will decode correctly, but PHP8.1.x will output undecoded strings.
The following code:
<?php
echo mb_decode_mimeheader(mb_encode_mimeheader('1234567890123456789012', 'ISO-2022-JP-MS', 'B'));
Resulted in this output:
123456789012345678#9#0#1#2
But I expected this output instead:
1234567890123456789012
PHP Version
PHP 8.1.6
Operating System
Ubuntu 20.04