You are here

public function TextEncoder::__construct in Feeds extensible parsers 8

Constructs a EncoderInterface object.

Parameters

array $encoding_list: The list of encodings to search through.

Overrides EncoderInterface::__construct

File

src/Encoder/TextEncoder.php, line 37

Class

TextEncoder
Generic text encoder.

Namespace

Drupal\feeds_ex\Encoder

Code

public function __construct(array $encoding_list) {
  $this->encodingList = $encoding_list;
  $this->isMultibyte = Unicode::getStatus() == Unicode::STATUS_MULTIBYTE;
}