For example I have following code
Source.fromFile(new File( path), \"UTF-8\").getLines()
and it throws exception
Exception in
I had a similar issue, and one of Scala's built-in codecs did the trick for me:
Source.fromFile(new File(path))(Codec.ISO8859).getLines()