Skip to content

Commit

Permalink
Merge pull request #99 from kamijin-fanta/fix/char-code
Browse files Browse the repository at this point in the history
fix char code.
  • Loading branch information
eed3si9n authored Apr 7, 2017
2 parents d9faf04 + 780659d commit 0f612c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object Frontin {
(str.trim == separator) && (str startsWith separator)

def apply(file: File): Frontin =
apply(scala.io.Source.fromFile(file).getLines.mkString("\n"))
apply(scala.io.Source.fromFile(file)("UTF-8").getLines.mkString("\n"))

def apply(str: String): Frontin =
str.linesWithSeparators.toList match {
Expand Down

0 comments on commit 0f612c7

Please sign in to comment.