Skip to content

Set UTF-8 Encoding for Reading Files. #122

Closed
@jeschkies

Description

@jeschkies

We had the following exceptions on generating the coverage: java.nio.charset.MalformedInputException: Input length = 1. It turned out that Scoverage sets an UTF-8 encoding for writing files but not for reading, e.g. in CodeGrid. I suggest Source.fromFile(mfile.source, "UTF-8").mkString because Scoverage should not rely on the JVM default encoding if it is using UTF-8 for writing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions