You are here

public function AbstractFeed::getEncoding in Zircon Profile 8

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

Get the Feed's encoding

Return value

string

File

vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php, line 155

Class

AbstractFeed

Namespace

Zend\Feed\Reader

Code

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