Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95294 invoked by uid 1010); 20 May 2006 17:19:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95279 invoked from network); 20 May 2006 17:19:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2006 17:19:02 -0000 X-PHP-List-Original-Sender: lists@block-online.eu X-Host-Fingerprint: 81.169.145.170 natlemon.rzone.de Solaris 10 (beta) Received: from ([81.169.145.170:62677] helo=natlemon.rzone.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 49/7D-19568-58F4F644 for ; Sat, 20 May 2006 13:19:01 -0400 Received: from ollie.block-gmbh.de (dslb-084-063-175-079.pools.arcor-ip.net [84.63.175.79]) (authenticated bits=0) by post.webmailer.de (8.13.6/8.13.6) with ESMTP id k4KHItkk010979 for ; Sat, 20 May 2006 19:18:56 +0200 (MEST) To: internals@lists.php.net Date: Sat, 20 May 2006 19:18:29 +0200 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Disposition: inline Message-ID: <200605201918.29524.lists@block-online.eu> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: iconv_mime_encoding From: lists@block-online.eu (Oliver Block) Hi, which sense does it make if a function like iconv_mime_encoding() requires an field_name as first argument? Header fields are lines composed of a field name, followed by a colon (":"), followed by a field body, and terminated by CRLF. A field name MUST be composed of printable US-ASCII characters (i.e., characters that have values between 33 and 126, inclusive), except colon. If you use imap_mail() to send the message, you are required to supply a subject argument. If you supply the return value of iconv_mime_encoding() your will get a subject like that (after decoding by receiver): Subject: Subject: Hello Additionally I'd like to say that this iconv_mime_encoding does convert the header without any testing if it is required to encode the string. It will also encode an US-ASCII string. Best Regards, Oliver