Bug #15960 [Opn->Fbk]: PATCH: mimeDecode ignores character encoding/charset

From: Date: Sun, 01 Mar 2009 22:30:51 +0000
Subject: Bug #15960 [Opn->Fbk]: PATCH: mimeDecode ignores character encoding/charset
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-92@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=15960&edit=1 ID: 15960 Updated by: daniel.oconnor@gmail.com Reported By: rhyde at hydenetworks dot com Summary: PATCH: mimeDecode ignores character encoding/charset -Status: Open +Status: Feedback Type: Bug Package: Mail_mimeDecode Operating System: FreeBSD PHP Version: 5.2.8 Roadmap Versions: New Comment: <div id="changeset"> <span class="removed">-Status: Open</span> <span class="added">+Status: Feedback</span> </div> Previous Comments: ------------------------------------------------------------------------ [2009-03-01 22:30:41] doconnor Thanks for the patch Trey. Two quick ones: 1. cvs diff -u next time 2. Can you provide a small executable test case to prove your patch works. ------------------------------------------------------------------------ [2009-02-28 00:29:48] treyhyde Description: ------------ _decodeHeader ignores the charset portion of base64 encoded headers. Doing so will work for 8859, ANSI and other 7bit compatible charsets but not for GB* encoded Chinese or other similar "exotic" character sets. Similarly, it ignores the charset portion of content-type in the mime definition of bodies. This patch should do the same thing as it did before if iconv is not present and the correct thing if it is present. You'll want to make sure your iconv.*_encoding php.ini properties are set correctly or set them at run time with iconv_set_encoding Test script: --------------- Expected result: ---------------- Actual result: -------------- ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=15960&edit=1

« previous php.pear.bugs (#92) next »