note 93545 deleted from function.iconv-mime-encode by danbrown

From: Date: Tue, 15 Sep 2009 18:59:23 +0000
Subject: note 93545 deleted from function.iconv-mime-encode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160590@lists.php.net to get a copy of this message
Note Submitter: djmaze@cpgnuke ---- In PHP 5.2.9 it fails to wrap lines when dealing with UTF-8 data. Example of failure: <?php $str = ''; for ($i=160; $i<192; ++$i) { $str .= "\xC2".chr($i); } $preferences = array( 'scheme' => 'Q', 'input-charset' => 'UTF-8', 'output-charset' => 'UTF-8', 'line-length' => 76, 'line-break-chars' => "\r\n" ); var_dump(iconv_mime_encode('Subject', $str, $preferences)); ?>

« previous php.notes (#160590) next »