utf8_encode
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Converts a string from ISO-8859-1 to UTF-8
utf8_encode
(
string $string
):
string
statamic/cms
protected function
fieldtype
(
$request
)
{
$config
=
json_decode
(
utf8_encode
(
base64_decode
(
$request
->
config
)),
true
);
return
Fieldtype
::
find
(
$config
[
'type'
])->
setField
(
new
Field
(
'relationship'
,
$config
)
src/Http/Controllers/CP/Fieldtypes/RelationshipFieldtypeController.php