note 89029 added to function.mb-convert-encoding

From: Date: Wed, 18 Feb 2009 20:06:20 +0000
Subject: note 89029 added to function.mb-convert-encoding
Groups: php.notes 
Request: Send a blank email to php-notes+get-150815@lists.php.net to get a copy of this message
I used this function insted mb_convert_encoding, because mbstring wasn't enabled at my comercial server. It only suports utf7, 8 e iso 8859-1: function my_convert_encoding($string,$to,$from) { // Convert string to ISO_8859-1 if ($from == "UTF-8") $iso_string = utf8_decode($string); else if ($from == "UTF7-IMAP") $iso_string = imap_utf7_decode($string); else $iso_string = $string; // Convert ISO_8859-1 string to result coding if ($to == "UTF-8") return(utf8_encode($iso_string)); else if ($to == "UTF7-IMAP") return(imap_utf7_encode($iso_string)); else return($iso_string); } ---- Server IP: 200.185.126.110 Probable Submitter: 200.189.117.10 ---- Manual Page -- http://www.php.net/manual/en/function.mb-convert-encoding.php Edit -- https://master.php.net/note/edit/89029 Del: integrated -- https://master.php.net/note/delete/89029/integrated Del: useless -- https://master.php.net/note/delete/89029/useless Del: bad code -- https://master.php.net/note/delete/89029/bad+code Del: spam -- https://master.php.net/note/delete/89029/spam Del: non-english -- https://master.php.net/note/delete/89029/non-english Del: in docs -- https://master.php.net/note/delete/89029/in+docs Del: other reasons-- https://master.php.net/note/delete/89029 Reject -- https://master.php.net/note/reject/89029 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150815) next »