Bubble Foundry


Displaying Unicode Characters in the Scala REPL on OS X

by Peter.

So simple but unforuntately I missed it until now:

scala -Dfile.encoding="UTF-8"

Now you can go to town with characters like ø and ∫! Oh, and you may want to alias this command in your ~/.profile:

alias scala='scala -Dfile.encoding="UTF-8"'