Exemplo n.º 1
0
 public static function fixUTF8($text)
 {
     if (is_array($text)) {
         foreach ($text as $k => $v) {
             $text[$k] = EasyBlogStringHelper::fixUTF8($v);
         }
         return $text;
     }
     $last = "";
     while ($last != $text) {
         $last = $text;
         $text = EasyBlogStringHelper::forceUTF8(utf8_decode(EasyBlogStringHelper::forceUTF8($text)));
     }
     return $text;
 }