note 91703 deleted from function.htmlentities by danbrown
| From: | danbrown@php.net | 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/