Box\Spout\Reader\CSV\ReaderOptions::getEncoding PHP Метод

getEncoding() публичный Метод

public getEncoding ( ) : string
Результат string
    public function getEncoding()
    {
        return $this->encoding;
    }

Usage Example

Пример #1
0
 /**
  * @param resource $filePointer Pointer to the CSV file to read
  * @param \Box\Spout\Reader\CSV\ReaderOptions $options
  * @param \Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper
  */
 public function __construct($filePointer, $options, $globalFunctionsHelper)
 {
     $this->filePointer = $filePointer;
     $this->fieldDelimiter = $options->getFieldDelimiter();
     $this->fieldEnclosure = $options->getFieldEnclosure();
     $this->encoding = $options->getEncoding();
     $this->inputEOLDelimiter = $options->getEndOfLineCharacter();
     $this->shouldPreserveEmptyRows = $options->shouldPreserveEmptyRows();
     $this->globalFunctionsHelper = $globalFunctionsHelper;
     $this->encodingHelper = new EncodingHelper($globalFunctionsHelper);
 }