utf8_decode
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Converts a string from UTF-8 to ISO-8859-1, replacing invalid or unrepresentable characters
utf8_decode
(
string $string
):
string
$uuid
=
Str
::
uuid
();
$exception
= new
Exception
(
utf8_decode
(
'ÐÑÙ0E\xE2\x�98\xA0World��7B¹!þÿ'
));
$provider
= new
DatabaseFailedJobProvider
(
$db
->
getDatabaseManager
(),
'default'
,
'failed_jobs'
);
$provider
->
log
(
'database'
,
'default'
,
json_encode
([
'uuid'
=> (string)
$uuid
]),
$exception
);
tests/Queue/DatabaseFailedJobProviderTest.php