public function setEncoding($encoding) { $this->getOptions()->setEncoding($encoding); return $this; }