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