Symfony\Component\Yaml\Unescaper::convertEncoding
Convert a string from one encoding to another.
Signature
private function convertEncoding(string
$value,
string
$to,
string
$from )
Parameters
$value
— string- The string to convert
$to
— string- The input encoding
$from
— string- The output encoding
Returns
- string
- The string with the new encoding
Errors/Exceptions
-
RuntimeException
- if no suitable encoding function is found (iconv or mbstring)