You are here

public function EncoderInterface::convertEncoding in Feeds extensible parsers 8

Converts a string to UTF-8.

Parameters

string $data: The string to convert.

Return value

string The encoded string, or the original string if encoding failed.

1 method overrides EncoderInterface::convertEncoding()
TextEncoder::convertEncoding in src/Encoder/TextEncoder.php
Converts a string to UTF-8.

File

src/Encoder/EncoderInterface.php, line 29

Class

EncoderInterface
Coverts text encodings.

Namespace

Drupal\feeds_ex\Encoder

Code

public function convertEncoding($data);