pull/2823/head
Thibault Duplessis 2017-03-21 15:33:42 +01:00
parent 6727718f84
commit 51b4f2b371
1 changed files with 2 additions and 2 deletions

View File

@ -72,10 +72,10 @@ private object $lang {
}
private def readLines(f: File) =
scala.io.Source.fromFile(f).getLines.toList
scala.io.Source.fromFile(f)("UTF-8").getLines.toList
private def printToFile(f: File)(content: String): Unit = {
val p = new java.io.PrintWriter(f)
val p = new java.io.PrintWriter(f, "UTF-8")
try { content.foreach(p.print) } finally { p.close() }
}
}