You are here

public function FeedsExEncoderInterface::convertEncoding in Feeds extensible parsers 7

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 FeedsExEncoderInterface::convertEncoding()
FeedsExTextEncoder::convertEncoding in src/Text/Utility.php
Converts a string to UTF-8.

File

src/Text/Utility.php, line 30
Contains FeedsExEncoderInterface and FeedsExTextEncoder.

Class

FeedsExEncoderInterface
Coverts text encodings.

Code

public function convertEncoding($data);