Reference

Str::convert()

Converts a string to a different encoding

Str::convert(string $string, string $targetEncoding, string $sourceEncoding = null): string

Parameters

Name Type Default Description
$string string
$targetEncoding string
$sourceEncoding string null

(optional)

Return type

string

Source code

kirby/src/Toolkit/Str.php#L238