src/curlient/Curlient.php
public function text($encoding = null) {
		$rst = $this->__toString();
		if ($rst) {
			if (!$encoding) {
				$encoding = $this->encoding;
			}
			if ($encoding && $encoding != 'UTF-8') {
				$rst = @mb_convert_encoding($rst, 'UTF-8', $encoding);
				$rst = preg_replace('/charset=([\'"])?(.+?)((;.+)?[\'"])/', 'charset=\1UTF-8\3', $rst);
			}

			return $rst;
		}

		return '';
	}
public function text($encoding = null) {
		$rst = $this->__toString();
		if ($rst) {
			if (!$encoding) {
				$encoding = $this->encoding;
			}
			if ($encoding && $encoding != 'UTF-8') {
				$rst = @mb_convert_encoding($rst, 'UTF-8', $encoding);
				$rst = preg_replace('/charset=([\'"])?(.+?)((;.+)?[\'"])/', 'charset=\1UTF-8\3', $rst);
			}

			return $rst;
		}

		return '';
	}
取网页内容.

@param string $encoding

@return string