Reputation: 87
When I try to print a special character like "ä, ö, ü, á, é, etc..." with
fun main() {
println("ä")
}
Intellij outputs:
>Task :FirsttryKt.main()
�
BUILD SUCCESSFUL in 1s
...
How can I print the "ä" or other non ascii characters?
Upvotes: 1
Views: 558
Reputation: 402493
It's a known bug.
As a workaround you can add -Dfile.encoding=UTF-8
in Help | Edit Custom VM Options and restart IntelliJ IDEA.
Upvotes: 2