[Solved] Impossible to use umlauts in Texts.of etc

It seems like it is impossible to use umlauts in Text instances. I tried Texts.of Texts.builder and played around with them.

I can’t use umlauts like äöüß and especially the € sign.

When im chatting, i can use them without problems.

Look at “Dein gewählter Job: test”. It generates just a question mark.

To reproduce it, just try to send a Text to any player with some umlauts.

When give some umlauts as input, it works as well.

Screenshot:

Am i the only one with that issue, cause i haven’t found any topic related to this?

Forge Version: forge-1.8-11.14.1.1398-universal
Sponge Version: sponge-1.8-1371-2.1DEV-437
Compiled against: org.spongepowered:spongeapi:2.0

Solution for me:
Changed file encodings to UTF-8 because Intellij IDEA defaults to windows-1252.

Do you use IntelliJ IDEA?

That doesn’t seem to be the problem for them.

This question answered my question…

I am using IntelliJ IDEA and changed the file encoding to UTF-8 and it works now.

Thank you. Never touched file encodings after reinstalling my OS.

1 Like

IntelliJ’s default encoding is windows-1252 which does not support umlauts. You have to use UTF-8.

2 Likes