code: def get_charset(response):
      
      # Set default charset
      charset = DEFAULT_CHARSET
  
      m = re.findall(r';charset=(.*)', response.get('mimeType', ''))
      if m:
          charset = m[0]
  
      return charset
docs: Return charset from ``response`` or default charset.
  
      :rtype: str