Use explicit encoding for reading from file.
open() without encoding uses platform default encoding. On Windows it can be encoding that has some bytes undefined - for example, in Windows-1250 encoding there doesn't exist char with code 0x88.
Hello Filip Jirsák, thanks for contributing a PR to our project!
We use the Oracle Contributor Agreement to make the copyright of contributions clear. We don't have a record of you having signed this yet, based on your email address filip -(at)- jirsak -(dot)- org. You can sign it at that link.
If you think you've already signed it, please comment below and we'll check.
Filip Jirsák has signed the Oracle Contributor Agreement (based on email address filip -(at)- jirsak -(dot)- org) so can contribute to this repository.