Skip to content
Snippets Groups Projects
Commit d9944bdd authored by Antoine Lambert's avatar Antoine Lambert
Browse files

browse/utils: Robustify content encoding detection

When attempting to re-encode non UTF-8 textual content, use chardet
to find the encoding first and use it if the detection confidence
is really high.

Previously some encoding like SHIFT_JIS (for japanese language) were
not correctly detected and thus content were badly rendered in the
browse Web UI.
parent d858c9b4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment