How to convert this String the surveyÂ’s rules to UTF-8 in Scala?
the surveyÂ’s rules
UTF-8
I tried these roads but does not work:
scala> val text =
Just set the JVM's file.encoding parameter to UTF-8 as follows:
file.encoding
-Dfile.encoding=UTF-8
It makes sure that UTF-8 is the default encoding.
Using scala it could be scala -Dfile.encoding=UTF-8.
scala
scala -Dfile.encoding=UTF-8