repobee / repobee-sanitizer

A plugin for sanitizing master repositories before distribution to students
MIT License
2 stars 3 forks source link

Discover mode requires us to guess file encodings #55

Closed slarse closed 4 years ago

slarse commented 4 years ago

We need to be able to guess the file encoding of a file, as not all files are even text files. For example, trying to decode an image as UTF8 is not going to play out particularly nicely. The chardet library should do what we need.

@tohanss Let's fix this one together.