core
core copied to clipboard
fix: json encoder invalid utf8 characters
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.
You might want to add that conditionally then with PHP_VERSION (https://www.php.net/manual/de/reserved.constants.php)