blingenf / copydetect

Code plagiarism detection tool
MIT License
238 stars 36 forks source link

explicitly use utf-8 encoding when reading #24

Closed blingenf closed 1 year ago

blingenf commented 1 year ago

Opening text files without an explicit encoding scheme may cause issues for operating systems which do not use UTF-8 as the locale encoding (#23, https://peps.python.org/pep-0597/#using-the-default-encoding-is-a-common-mistake). This changes the encoding used by copydetect when reading files to UTF-8.