Lines Matching refs:charset
175 public $charset; variable in DOMDocumentWrapper
189 $this->charset = $this->document->encoding;
215 list($contentType, $charset) = $this->contentTypeToArray($this->contentType);
219 $loaded = $this->loadMarkupHTML($markup, $charset);
224 $loaded = $this->loadMarkupXML($markup, $charset);
230 $loaded = $this->loadMarkupXML($markup, $charset);
253 protected function documentCreate($charset, $version = '1.0') { argument
256 $this->document = new DOMDocument($version, $charset);
257 $this->charset = $this->document->encoding;
269 $charset = null;
273 $charset = $documentCharset;
276 $charset = $requestedCharset;
278 if (! $charset)
279 $charset = phpQuery::$defaultCharset;
309 $charset = $requestedCharset;
317 … phpQuery::debug("Full markup load (HTML), DocumentFragment detected, using charset '$charset'");
318 $return = $this->documentFragmentLoadMarkup($this, $charset, $markup);
321 phpQuery::debug("Full markup load (HTML), appending charset: '$charset'");
322 $markup = $this->charsetAppendToHTML($markup, $charset);
324 phpQuery::debug("Full markup load (HTML), documentCreate('$charset')");
325 $this->documentCreate($charset);
354 $charset = null;
364 $charset = $documentCharset;
369 $charset = $requestedCharset;
372 $charset = $requestedCharset;
374 if (! $charset) {
375 $charset = phpQuery::$defaultCharset;
383 … phpQuery::debug("Full markup load (XML), DocumentFragment detected, using charset '$charset'");
384 $return = $this->documentFragmentLoadMarkup($this, $charset, $markup);
389 phpQuery::debug("Full markup load (XML), appending charset '$charset'");
390 $markup = $this->charsetAppendToXML($markup, $charset);
398 $this->documentCreate($charset);
510 protected function charsetAppendToHTML($html, $charset, $xhtml = false) { argument
514 .$charset.'" '
535 protected function charsetAppendToXML($markup, $charset) { argument
536 $declaration = '<'.'?xml version="1.0" encoding="'.$charset.'"?'.'>';
608 protected function documentFragmentCreate($source, $charset = null) { argument
615 if (! $charset)
616 $charset = $this->charset;
623 if (! $this->documentFragmentLoadMarkup($fake, $charset))
630 $this->documentFragmentLoadMarkup($fake, $charset, $source);
640 private function documentFragmentLoadMarkup($fragment, $charset, $markup = null) { argument
648 $fragment->loadMarkupXML('<?xml version="1.0" encoding="'.$charset.'"?>'
654 … $fragment->loadMarkupXML('<?xml version="1.0" encoding="'.$charset.'"?><fake>'.$markup.'</fake>');
659 .$charset.'"></head>';
721 self::debug("Getting outerXML with charset '{$this->charset}'");
760 …::debug("Getting markup (".($this->isXML?'XML':'HTML')."), final with charset '{$this->charset}'");
1126 public $charset = null; variable in phpQueryObject
1204 $this->charset =& $this->documentWrapper->charset;
4643 public static function newDocumentHTML($markup = null, $charset = null) { argument
4644 $contentType = $charset
4645 ? ";charset=$charset"
4656 public static function newDocumentXML($markup = null, $charset = null) { argument
4657 $contentType = $charset
4658 ? ";charset=$charset"
4669 public static function newDocumentXHTML($markup = null, $charset = null) { argument
4670 $contentType = $charset
4671 ? ";charset=$charset"
4687 public static function phpToMarkup($php, $charset = 'utf-8') { argument
4711 public static function _phpToMarkupCallback($php, $charset = 'utf-8') { argument
4713 .htmlspecialchars("<"."?php".$m[4]."?".">", ENT_QUOTES|ENT_NOQUOTES, $charset)
4780 public static function newDocumentFileHTML($file, $charset = null) { argument
4781 $contentType = $charset
4782 ? ";charset=$charset"
4793 public static function newDocumentFileXML($file, $charset = null) { argument
4794 $contentType = $charset
4795 ? ";charset=$charset"
4806 public static function newDocumentFileXHTML($file, $charset = null) { argument
4807 $contentType = $charset
4808 ? ";charset=$charset"