def get_charset(response):
    """ Return charset from ``response`` or default charset.

    :rtype: str

    """
    # Set default charset
    charset = DEFAULT_CHARSET

    m = re.findall(r';charset=(.*)', response.get('mimeType', ''))
    if m:
        charset = m[0]

    return charset