public static function utf8($content_type = 'text/html') { if (!headers_sent()) { header('Content-type: ' . $content_type . '; charset=utf-8'); return true; } return false; }