code: def accept_encoding(self):
          
          # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset
          ret = ""
          accept_encoding = self.get_header("Accept-Charset", "")
          if accept_encoding:
              bits = re.split(r"\s+", accept_encoding)
              bits = bits[0].split(";")
              ret = bits[0]
          return ret
docs: The encoding the client requested the response to use