Per non sbagliare: Codifica UTF-8 e PHP, mai più ‘�’ » Sergio Panagia
9 weeks ago by kose
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
{
$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);
}
9 weeks ago by kose
related tags
apache ⊕ app ⊕ apple ⊕ applemail ⊕ archive ⊕ ascii ⊕ backup ⊕ barcodes ⊕ browser ⊕ browsers ⊕ browsersize ⊕ chars ⊕ client ⊕ code ⊕ color ⊕ compatibility ⊕ comuni ⊕ content ⊕ coordinates ⊕ cron ⊕ cronjob ⊕ crop ⊕ data ⊕ Devices ⊕ dns ⊕ dropbox ⊕ encoding ⊕ export ⊕ facebook ⊕ font ⊕ fonts ⊕ function ⊕ funny ⊕ gmail ⊕ google ⊕ htaccess ⊕ html ⊕ html5 ⊕ icons ⊕ image ⊕ inspiration ⊕ instructions ⊕ invoicing ⊕ italian ⊕ italiani ⊕ itunes ⊕ jplayer ⊕ mac ⊕ macos ⊕ macosx ⊕ mail ⊕ management ⊕ maps ⊕ mod_rewrite ⊕ Notifier ⊕ online ⊕ opensource ⊕ password ⊕ php ⊕ private ⊕ project ⊕ script ⊕ search ⊕ server ⊕ software ⊕ svg ⊕ symbols ⊕ text ⊕ timezone ⊕ tipography ⊕ tips ⊕ tool ⊕ tools ⊕ tumblr ⊕ twitter ⊕ upload ⊕ utilities ⊕ utility ⊖ webdesign ⊕ webtools ⊕Copy this bookmark: