public static function setEncoding($encoding) {

		if(false === is_string($encoding) || 0 === strlen($encoding)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($encoding)), E_USER_ERROR);
		}

		$encoding = strtolower($encoding);

		if(false === in_array($encoding, static :: $encodings)) {
			return trigger_error(sprintf('Argument 1 passed to %s() is not a supported encoding. Provide an encoding supported by htmlspecialchars()', __METHOD__), E_USER_ERROR);
		}

		static :: $encoding = $encoding;
	}