Closed joerndyherrn closed 1 year ago
auditor
We sometimes get an error during data crawling that utf-8 characters are possibly incorrectly encoded
We get the following exception:
JsonException: Malformed UTF-8 characters, possibly incorrectly encoded in /var/www/symfony/vendor/damienharper/auditor/src/Provider/Doctrine/Auditing/Transaction/TransactionProcessor.php:222
see https://github.com/DamienHarper/auditor/blob/master/src/Provider/Doctrine/Auditing/Transaction/TransactionProcessor.php
It seems that this exception may relate to the following solution: https://stackoverflow.com/a/52641198/11957237 using mb_convert_encoding
mb_convert_encoding
The auditor should not crash and rather log a warning or format the data properly.
@joerndyherrn this is fixed in 2.4.4
2.4.4
auditor
versionSummary
We sometimes get an error during data crawling that utf-8 characters are possibly incorrectly encoded
Current behavior
We get the following exception:
see https://github.com/DamienHarper/auditor/blob/master/src/Provider/Doctrine/Auditing/Transaction/TransactionProcessor.php
How to reproduce
It seems that this exception may relate to the following solution: https://stackoverflow.com/a/52641198/11957237 using
mb_convert_encoding
Expected behavior
The auditor should not crash and rather log a warning or format the data properly.