JBZoo\Utils\Http::utf8 PHP Method

utf8() public static method

Transmit UTF-8 content headers if the headers haven't already been sent.
public static utf8 ( string $content_type = 'text/html' ) : boolean
$content_type string The content type to send out
return boolean
    public static function utf8($content_type = 'text/html')
    {
        if (!headers_sent()) {
            header('Content-type: ' . $content_type . '; charset=utf-8');
            return true;
        }
        return false;
    }