#33720 [Fbk->Csd]: mb_encode_mimeheader does not work
| From: | hirokawa@php.net | Date: | Tue, 08 Nov 2005 13:55:07 +0000 |
| Subject: | #33720 [Fbk->Csd]: mb_encode_mimeheader does not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87853@lists.php.net to get a copy of this message | ||
ID: 33720
Updated by: hirokawa@php.net
Reported By: s dot masugata at digicom dot dnp dot co dot jp
-Status: Feedback
+Status: Closed
Bug Type: mbstring related
Operating System: Solaris8
PHP Version: 4.4.0
Assigned To: hirokawa
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-11-07 23:07:18] hirokawa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-08-17 10:18:02] misiek at dione dot ids dot pl
Argh, these characters in $str are s' and l/ in iso8859-2 and should be
written in 8-bit not as html entities.
------------------------------------------------------------------------
[2005-08-17 10:13:56] misiek at dione dot ids dot pl
This function doesn't work for me in different situation, too:
<?php
$str = "costam Użytkownik cośtam inne";
$charset = "iso-8859-2";
mb_internal_encoding($charset);
$str = mb_encode_mimeheader($str,$charset,'Q');
echo "$str\n";
?>
should produce:
costam =?ISO-8859-2?Q?U=BFytkownik=20co=B6tam=20inne?=
(and this works on php 5.0.4)
but on 4.4.0 it produces:
costam U|ytkownik co[tam inne
------------------------------------------------------------------------
[2005-07-18 02:22:31] sniper@php.net
Moriyoshi: Somehow it looks like you never fixed #321311 anywhere, just
added a NEWS entry ???
------------------------------------------------------------------------
[2005-07-16 05:14:58] s dot masugata at digicom dot dnp dot co dot jp
Description:
------------
http://bugs.php.net/bug.php?id=32311
mb_encode_mimeheader is did not operate by the influence that corrected
this problem.
Reproduce code:
---------------
<?
declare( encoding="EUC-JP" );
var_dump( mb_encode_mimeheader( "\è" ) );
?>
Expected result:
----------------
string(34) "=?ISO-2022-JP?B?GyRCST1CahsoQg==?="
Actual result:
--------------
string(2) "hL"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33720&edit=1