From:             jalonso at art3mis dot com
Operating system: Linux
PHP version:      5.0.0b3 (beta3)
PHP Bug Type:     mbstring related
Bug description:  mb_decode_mimeheader removes wanted whitespace

Description:
------------
mb_decode_mimeheader($str) removes whitespace randomly after every
translated word

Reproduce code:
---------------
$str = '=?ISO-8859-1?Q?Le=D1e?= =?ISO-8859-1?Q?alegr=EDa?= en el
=?ISO-8859-1?Q?m=FAndo?= =?ISO-8859-1?Q?virt=FCal?=';

echo mb_decode_mimeheader($word);




Expected result:
----------------
output should be: "LeÑe alegría en el múndo virtüal"

Actual result:
--------------
output is: "LeÑealegría en el múndovirtüal"

-- 
Edit bug report at http://bugs.php.net/?id=26749&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26749&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26749&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26749&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26749&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26749&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26749&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26749&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26749&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26749&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26749&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26749&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26749&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26749&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26749&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26749&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26749&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26749&r=float

Reply via email to