Skip to content

Problem when ISO-2022-JP-MS is specified in mb_encode_mimeheader #9683

Closed
@nanasess

Description

@nanasess

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions