private function getResponseCharset($contentType)
    {
        $start = strpos($contentType, '=');
        $type = '';

        if ($start !== false)
        {
            $type = strtoupper(trim(substr($contentType, $start + 1)));
        }

        return $type;
    }
private function getResponseCharset($contentType)
    {
        $start = strpos($contentType, '=');
        $type = '';

        if ($start !== false)
        {
            $type = strtoupper(trim(substr($contentType, $start + 1)));
        }

        return $type;
    }
private function getResponseCharset ( $ contentType ) { $ start = strpos ( $ contentType , '=' ) ; $ type = '' ; if ( $ start !== false ) { $ type = strtoupper ( trim ( substr ( $ contentType , $ start + 1 ) ) ) ; } return $ type ; }
Get the response charset

@param string $contentType

@return string
Get the response charset