note 32264 deleted from function.utf8-encode by cmb

From: Date: Sun, 22 Dec 2019 09:04:16 +0000
Subject: note 32264 deleted from function.utf8-encode by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213587@lists.php.net to get a copy of this message
Note Submitter: mualem_i at hotmail dot com ---- Hebrew!! What a language. I had some trouble placing the Hebrew in a javascript based drop down menu, the text appeared as UTF8 so I made this function to overcome the problem (Not talking about efficiency) function rtf_heb($string) { $array = split (" ",$string) ; foreach ($array as $VAL) { $VAL = str_replace("&#1488","à",$VAL); $VAL = str_replace("&#1489","á",$VAL); $VAL = str_replace("&#1490","â",$VAL); $VAL = str_replace("&#1491","ã",$VAL); $VAL = str_replace("&#1492","ä",$VAL); $VAL = str_replace("&#1493","å",$VAL); $VAL = str_replace("&#1494","æ",$VAL); $VAL = str_replace("&#1495","ç",$VAL); $VAL = str_replace("&#1496","è",$VAL); $VAL = str_replace("&#1497","é",$VAL); $VAL = str_replace("&#1499","ë",$VAL); $VAL = str_replace("&#1500","ì",$VAL); $VAL = str_replace("&#1502","î",$VAL); $VAL = str_replace("&#1504","ð",$VAL); $VAL = str_replace("&#1505","ñ",$VAL); $VAL = str_replace("&#1506","ò",$VAL); $VAL = str_replace("&#1508","ô",$VAL); $VAL = str_replace("&#1510","ö",$VAL); $VAL = str_replace("&#1511","÷",$VAL); $VAL = str_replace("&#1512","ø",$VAL); $VAL = str_replace("&#1513","ù",$VAL); $VAL = str_replace("&#1514","ú",$VAL); $VAL = str_replace("&#1498","ê",$VAL); $VAL = str_replace("&#1507","ó",$VAL); $VAL = str_replace("&#1503","ï",$VAL); $VAL = str_replace("&#1501","í",$VAL); $VAL = str_replace("&#1509","õ",$VAL); $VAL = str_replace(";","",$VAL); $send_VAR .= $VAL." "; } return $send_VAR; }

« previous php.notes (#213587) next »