Skip to content

Commit

Permalink
Remove utf8_encode() function (#6823)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofrewak authored Oct 26, 2022
1 parent 6a7d0e4 commit de0d804
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function filters(Request $request)

protected function fieldtype($request)
{
$config = json_decode(utf8_encode(base64_decode($request->config)), true);
$config = json_decode(mb_convert_encoding(base64_decode($request->config), 'UTF-8', mb_list_encodings()), true);

return Fieldtype::find($config['type'])->setField(
new Field('relationship', $config)
Expand Down

0 comments on commit de0d804

Please sign in to comment.