Bug #19346 [Opn->Fbk]: Wrong charset encoding
| From: | alan at akbkhome dot com | Date: | Mon, 26 Mar 2012 10:07:05 +0000 |
| Subject: | Bug #19346 [Opn->Fbk]: Wrong charset encoding | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8448@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19346&edit=1
ID: 19346
Updated by: alan@akbkhome.com
Reported By: alex dot volkow at gmail dot com
Summary: Wrong charset encoding
-Status: Open
+Status: Feedback
Type: Bug
Package: Mail_mimeDecode
Package Version: 1.5.5
PHP Version: 5.3.10
Roadmap Versions:
New Comment:
-Status: Open
+Status: Feedback
Seems fine?
$mime_message =
"Subject: =?KOI8-R?B?8NLJ18XUIQ==?=
From: =?KOI8-R?B?4czFy9PBzsTSIPfPzMvP1w==?= <email@gmail.com>
Hello
";
require_once 'Mail/mimeDecode.php';
$decoder = new Mail_mimeDecode($mime_message);
$params = array(
'include_bodies' => TRUE,
'decode_bodies' => TRUE,
'decode_headers' => 'UTF8//IGNORE'
);
$decoded = $decoder->decode($params);
print_r($decoded);
Previous Comments:
------------------------------------------------------------------------
[2012-03-25 00:14:06] alexvolkow
Description:
------------
Koi8r charset subject line to utf-8 problem
Test script:
---------------
Subject: =?KOI8-R?B?8NLJ18XUIQ==?=
Expected result:
----------------
Subject: ??????!
Actual result:
--------------
Subject: ?÷??????????!
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19346&edit=1