note 91703 added to function.htmlentities

From: Date: Tue, 23 Jun 2009 21:24:01 +0000
Subject: note 91703 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-157286@lists.php.net to get a copy of this message
A function which convert html codes to Turkish characters after htmlentities applied a string or text. function turkishEncoding($str){ $dizi1 = array(”ç”, “Ç”, “ğ”, “Ğ”, “ı”, “İ”, “ö”, “Ö”, “ş”, “Ş”, “ü”, “Ü”); $dizi2 = array(’ç’, “Ç”, “ð”, “Д, “ý”, “Ý”, “ö”, “Ö”,”þ”, “Þ”, “ü”,”Ü”); $str1 = str_replace($dizi2,$dizi1,$str); return $str1; } You have to set $dizi1 with numerical code of Turkish characters. You can find the numerical code of Turkish characters from my blog. http://canerblt.wordpress.com/2009/06/23/ ---- Server IP: 160.75.100.7 Probable Submitter: 85.108.110.100 ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit -- https://master.php.net/note/edit/91703 Del: integrated -- https://master.php.net/note/delete/91703/integrated Del: useless -- https://master.php.net/note/delete/91703/useless Del: bad code -- https://master.php.net/note/delete/91703/bad+code Del: spam -- https://master.php.net/note/delete/91703/spam Del: non-english -- https://master.php.net/note/delete/91703/non-english Del: in docs -- https://master.php.net/note/delete/91703/in+docs Del: other reasons-- https://master.php.net/note/delete/91703 Reject -- https://master.php.net/note/reject/91703 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157286) next »