Closed dometto closed 5 years ago
Makes sense!
Right? Not sure why we didn't do this before. Maybe rugged didn't provide the binary check before. Shall I just merge this?
The binary?
(and in RJGit, RawText.is_binary
) methods use a heuristic to determine whether a file is likely binary or not. So some files could technically still slip through that don't respond to force_encoding, or otherwise end up causing encoding errors. We could try to rescue those in Wiki#search
? Or is it better to let it crash?
We could try to rescue those in Wiki#search? Or is it better to let it crash?
Rescuing those there seems sensible. 👍
Shall I just merge this?
Fine by me!
Thanks guys :)
Fixes #24