core icon indicating copy to clipboard operation
core copied to clipboard

fix: json encoder invalid utf8 characters

Open divine opened this issue 3 years ago • 1 comments

Co-Authored-By: AntonioCS [email protected]

Q A
Branch? main
Tickets #4416
License MIT
Doc PR api-platform/docs#...

This is a follow-up for #4416 with the added test.

Test for PHP 7.1 failing because of:

JSON_INVALID_UTF8_IGNORE (int)
Ignore invalid UTF-8 characters. Available as of PHP 7.2.0.

divine avatar May 01 '22 21:05 divine

You might want to add that conditionally then with PHP_VERSION (https://www.php.net/manual/de/reserved.constants.php)

KDederichs avatar May 02 '22 12:05 KDederichs