Gc\User\Visitor::getAcceptCharset PHP Method

getAcceptCharset() protected method

Retrieve accept charset
protected getAcceptCharset ( ) : string
return string
    protected function getAcceptCharset()
    {
        $acceptCharset = empty($_SERVER['HTTP_ACCEPT_CHARSET']) ? null : $_SERVER['HTTP_ACCEPT_CHARSET'];
        if (!ctype_print($acceptCharset)) {
            $acceptCharset = null;
        }
        return $acceptCharset;
    }