Skip to content
Browse files

Set UTF-8 file encoding for scala language.

If encoding is not specified on some platform,
character corruption is occured.
  • Loading branch information...
1 parent aa6b8a0 commit bf103d314e930ecbc7fe73b0613da4bd60ace35d @syohex committed
Showing with 3 additions and 1 deletion.
  1. +1 −1 README.md
  2. +1 −0 quickrun.el
  3. +1 −0 sample/sample_utf8_jp.scala
View
2 README.md
@@ -107,7 +107,7 @@ as default. But you can register your own command and apply other languages.
* Io(io)
* Lua(lua)
* Groovy(groovy)
-* Scala(scala)
+* Scala(scala) *Please use UTF-8 encoding*
* SASS(sass)
* LESS(lessc)
* Erlang(escript)
View
1 quickrun.el
@@ -226,6 +226,7 @@
("groovy" . ((:command . "groovy")
(:description . "Run Groovy")))
("scala" . ((:command . "scala")
+ (:cmdopt . "-Dfile.encoding=UTF-8")
(:description . "Run Scala file with scala command")))
("sass" . ((:command . "sass")
(:exec . "%c %o --no-cache %s")
View
1 sample/sample_utf8_jp.scala
@@ -0,0 +1 @@
+println("こんにちわ Scala");

0 comments on commit bf103d3

Please sign in to comment.
Something went wrong with that request. Please try again.