Skip to content

Kirby 4.5.0

Str::convert()

Converts a string to a different encoding

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

Parameters

Name Type Default
$string * string
$targetEncoding * string
$sourceEncoding string|null null

Return type

string

Parent class

Kirby\Toolkit\Str