|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #42707 Add config to iconv_mime_encode not to add the header name.
Submitted: 2007-09-19 09:50 UTC Modified: 2018-02-24 17:04 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: frekko at gmail dot com Assigned:
Status: Open Package: ICONV related
PHP Version: 5.2.4 OS: gentoo
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
3 + 46 = ?
Subscribe to this entry?

 [2007-09-19 09:50 UTC] frekko at gmail dot com
In eZ components we're using iconv_mime_encode to encode header 
values. However, we store the result in a hash headerName => 
headerValue. This leads to funny code like:
$value = iconv_mime_encode( 'dummy', $value, $preferences );
$value = substr( $value, 7 ); // "dummy: " + 1

It would be nice to have a config option to iconv_mime_encode to 
just drop the header name alltogether to avoid hacks like this.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-10 14:19 UTC] narf at bofh dot bg
I too would love to be able to pass e.g. NULL as the field name.
 [2015-09-09 23:42 UTC]
-Package: Feature/Change Request +Package: ICONV related
 [2018-02-24 17:04 UTC]
FWIW, there is mb_encode_mimeheader().
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 12:01:33 2024 UTC