You are here

public function AbstractEntry::getEncoding in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::getEncoding()
  2. 8 vendor/zendframework/zend-feed/src/Reader/Extension/AbstractEntry.php \Zend\Feed\Reader\Extension\AbstractEntry::getEncoding()
  3. 8 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::getEncoding()
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::getEncoding()

Get the Entry's encoding

Return value

string

1 call to AbstractEntry::getEncoding()
AbstractEntry::saveXml in vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php
Get entry as xml

File

vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php, line 105

Class

AbstractEntry

Namespace

Zend\Feed\Reader

Code

public function getEncoding() {
  $assumed = $this
    ->getDomDocument()->encoding;
  if (empty($assumed)) {
    $assumed = 'UTF-8';
  }
  return $assumed;
}