kose + utility   45

Per non sbagliare: Codifica UTF-8 e PHP, mai più ‘�’ » Sergio Panagia
function fixEncoding($in_str)
{
$cur_encoding = mb_detect_encoding($in_str) ;
if($cur_encoding == "UTF-8" && mb_check_encoding($in_str,"UTF-8"))
return $in_str;
else
return utf8_encode($in_str);
}
php  function  utility  tips  encoding 
9 weeks ago by kose

Copy this bookmark:



description:


tags: