Пример #1
0
 /**
  * Returns the default mail charset.
  *
  * @return string
  */
 protected function getDefaultCharset()
 {
     return $this->view->getEncoding();
 }
Пример #2
0
 /**
  * Test set/getEncoding()
  * @group ZF-8715
  */
 public function testSetGetEncoding()
 {
     $view = new Zend_View();
     $this->assertEquals('UTF-8', $view->getEncoding());
     $view->setEncoding('ISO-8859-1');
     $this->assertEquals('ISO-8859-1', $view->getEncoding());
 }
Пример #3
0
 /**
  * Sets the encoding used in outputting renders.
  *
  * @param string $encoding The encoding to use.
  *
  * @return void
  */
 public function setEncoding($encoding)
 {
     parent::setEncoding($encoding);
     $this->_engine->setEncoding(parent::getEncoding());
 }