Lines Matching refs:charset
191 $charset = null;
194 $charset = mb_strtoupper($matches[1]);
197 return $charset;
204 $charset = $this->getEncoding();
206 if (is_null($charset)) {
207 $charset = $this->getCharset($html);
212 if ($charset === null && $detectedCharset == 'UTF-8') {
213 $charset = $detectedCharset;
216 $this->setEncoding($charset);
225 $charset = $this->getEncoding();
227 if ($charset !== null) {
229 $mbHasCharset = in_array($charset, array_map('mb_strtoupper', mb_list_encodings()));
232 $html = mb_convert_encoding($html, 'UTF-8', $charset);
236 $htmlIconv = iconv($charset, 'UTF-8', $html);
241 $charset = null;
246 if ($charset === null) {