Problem
I usually write my programs using IntelliJ but since I heard so much good about Eclipse scala plugin I decided to give it a go. I imported the project into Eclipse and (surprise, surprise) it did not compile...I quickly figured that it was a problem with unicode operators. First they weren't displaying well. Second they were not recognised by compiler either.
Solution
I quickly googled for an answer and here is what you need to do:- Find your eclipse.ini file (on mac it's inside the app package in Contents/MacOS folder)
- Add this line
-Dfile.encoding=UTF-8
at the end. - Restart Eclipse
- Clean and rebuild the project
Here is how it looks after the fix:
Enjoy!
Have you found a way to insert those characters in eclipse?
ReplyDelete