iconv_mime_encoding

From: Date: Sat, 20 May 2006 17:18:29 +0000
Subject: iconv_mime_encoding
Groups: php.internals 
Request: Send a blank email to internals+get-23590@lists.php.net to get a copy of this message
Hi, which sense does it make if a function like iconv_mime_encoding() requires an field_name as first argument? <rfc2822> 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. </rfc2822> 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

« previous php.internals (#23590) next »