Skip to content

Kirby 3.7.5

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

Parent class

Kirby\Toolkit\Str