Hello,
On page "Introduction to Scala", command "Source.fromFile(xxx).getLines.toArray" threw an error at me "java.nio.charset.MalformedInputException: Input length = 1". It is an easy fix by setting the encoding to UTF-8. Please consider updating the command on the tutorial page. Thanks!
Source.fromFile(xxx)("UTF-8").getLines.toArray
Hello, On page "Introduction to Scala", command "Source.fromFile(xxx).getLines.toArray" threw an error at me "java.nio.charset.MalformedInputException: Input length = 1". It is an easy fix by setting the encoding to UTF-8. Please consider updating the command on the tutorial page. Thanks!
Source.fromFile(xxx)("UTF-8").getLines.toArray
Thanks, Zilu