We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8148999 + 0bfb66f commit 2ae30e1Copy full SHA for 2ae30e1
scalac-scoverage-plugin/src/main/scala/scoverage/IOUtils.scala
@@ -15,6 +15,7 @@ object IOUtils {
15
16
private val UnixSeperator: Char = '/'
17
private val WindowsSeperator: Char = '\\'
18
+ private val UTF8Encoding: String = "UTF-8"
19
20
def getName(path: String): Any = {
21
val index = {
@@ -34,7 +35,7 @@ object IOUtils {
34
35
def clean(dataDir: String): Unit = clean(new File(dataDir))
36
37
def writeToFile(file: File, str: String) = {
- val writer = new BufferedWriter(new FileWriter(file))
38
+ val writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), UTF8Encoding))
39
try {
40
writer.write(str)
41
} finally {
0 commit comments