Skip to content

Unexpected result for iconv_mime_decode #7980

Closed

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

Activity

  1. trasher commented on Jan 21, 2022

    @trasher

    Result is the same with PHP 7.4.27 and 8.0.15.

  2. self-assigned this
    on Jan 21, 2022
  3. cmb69 commented on Feb 3, 2022

    @cmb69
    Member

    Indeed, the fix for bug 79200 wasn't quite right regarding iconv_mime_decode().

  4. added a commit that references this issue on Feb 3, 2022
    bf4b0f9
  5. added 2 commits that reference this issue on Feb 7, 2022
    49466af
    c53455f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions