code: def characterSet(self, charset: str) -> None:
          
          charset_node = self._find_charset_node() or Meta(parent=self.head)
          charset_node.setAttribute('charset', charset)
docs: Set character set of this document.