note 43166 added to function.imap-utf8

From: Date: Fri, 11 Jun 2004 18:48:33 +0000
Subject: note 43166 added to function.imap-utf8
Groups: php.notes 
Request: Send a blank email to php-notes+get-70937@lists.php.net to get a copy of this message
Here's my new better function... ;) function decode_ISO88591($string) { $string=str_replace("=?iso-8859-1?q?","",$string); $string=str_replace("=?iso-8859-1?Q?","",$string); $string=str_replace("?=","",$string); $charHex=array("0","1","2","3","4","5","6","7", "8","9","A","B","C","D","E","F"); for($z=0;$z<sizeof($charHex);$z++) { for($i=0;$i<sizeof($charHex);$i++) { $string=str_replace(("=".($charHex[$z].$charHex[$i])), chr(hexdec($charHex[$z].$charHex[$i])), $string); } } return($string); } Hope this helps. :) ---- Manual Page -- http://www.php.net/manual/en/function.imap-utf8.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43166 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43166&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43166&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70937) next »