|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36489 Mimeheaders not properly encoded/decoded
Submitted: 2006-02-22 21:00 UTC Modified: 2006-04-19 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: saeven at saeven dot net Assigned: hirokawa (profile)
Status: No Feedback Package: mbstring related
PHP Version: 5.1.2 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-02-22 21:00 UTC] saeven at saeven dot net
mbstring is improperly encoding/decoding mimeheaders.

Reproduce code:
$encode = mb_encode_mimeheader( "test_тест", "utf-8", 'Q' );
echo mb_decode_mimeheader( $encode );

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-22 21:03 UTC] saeven at saeven dot net
Your system htmlencoded the utf8 content. Let me try again:

$encode = mb_encode_mimeheader( "test_тест", "utf-8", 'Q' );
echo mb_decode_mimeheader( $encode );

Expected Result:

Actual Result:
 [2006-02-22 21:05 UTC] saeven at saeven dot net'll have to imagine that the htmlencoded entities are utf8 characters.
 [2006-03-12 09:17 UTC]
I executed your code using PHP 5.1.2/Fedora Core3,
and I get the expected result.


My php.ini setting is,
 mbstring.detect_order => auto
 mbstring.encoding_translation => Off
 mbstring.func_overload => 0
 mbstring.http_input => auto
 mbstring.http_output => pass
 mbstring.internal_encoding => ISO-8859-1
 mbstring.language => neutral
 mbstring.script_encoding => no value
 mbstring.strict_detection => Off
 mbstring.substitute_character => no value

PLease show me your php.ini settings which is related to mbstring.

 [2006-04-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Dec 05 19:01:24 2019 UTC