Skip to content

Kirby 4.4.1

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