1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 12:17:35 +02:00

Add JSON_INVALID_UTF8_SUBSTITUTE flag to default json_encode flags, refs #1446, fixes #1203

This commit is contained in:
Jordi Boggiano
2020-05-11 21:50:15 +02:00
parent ded9976021
commit ab01f390c7

View File

@@ -13,7 +13,7 @@ namespace Monolog;
final class Utils
{
const DEFAULT_JSON_FLAGS = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION;
const DEFAULT_JSON_FLAGS = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION | JSON_INVALID_UTF8_SUBSTITUTE;
/**
* @internal