Staging instance, all changes can be removed at any time

Skip to content

browse/utils: Replace chardet use by charset-normalizer

Chardet does not seem really maintained and failed to properly detect some encodings, resulting in 500 errors when attempting to browse some contents.

So prefer to use the charset-normalizer package instead which is better at detecting encoding while being faster than chardet.

Fixes SWH-WEBAPP-5RP, SWH-WEBAPP-5RY, SWH-WEBAPP-5RV, SWH-WEBAPP-5RX, SWH-WEBAPP-5RW and SWH-WEBAPP-5RT.

Edited by Antoine Lambert

Merge request reports

Loading