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

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

        return $type;
    }