Skip to content

Unexpected result for iconv_mime_decode #7980

Closed
@cedric-anne

Description

@cedric-anne

Description

The following code:

<?php
echo(iconv_mime_decode('=?windows-1258?Q?DSI_Charg=E9_de_Formation_Jean_Dupont?= <[email protected]>', ICONV_MIME_DECODE_STRICT, 'UTF-8'));

Resulted in this output:

DSI Chargé de Formation Jean Dupon <[email protected]>t

But I expected this output instead:

DSI Chargé de Formation Jean Dupont <[email protected]>

Nota:
On PHP 7.2.34, result is different, but still buggy.

DSI Chargé de Formation Jean Dupon <[email protected]>

PHP Version

8.1.0

Operating System

Ubuntu 20.04.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions