Simon
Simon

Reputation: 87

Kotlin with Intellij doesn't show non ascii characters

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

Answers (1)

CrazyCoder
CrazyCoder

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

Related Questions