note 91703 deleted from function.htmlentities by danbrown

From: Date: Tue, 23 Jun 2009 23:41:14 +0000
Subject: note 91703 deleted from function.htmlentities by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157304@lists.php.net to get a copy of this message
Note Submitter: canerblt at gmail dot com ---- 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/

« previous php.notes (#157304) next »