Unable to Set UTF-8 Encoding for Properties Files (*.properties)

Answered

Apologies if this question has been asked before. Basically, and even though I have already set the encoding to UTF-8 (see picture):

French characters like (é, è, à,...) are not being recognized for some reason, and I end up having words like this in my *.properties files:

label.type.event.object-end-execution-in-error=Fin d'exécution avec erreur

In the status bar, the encoding is set to UTF-8, but it's grayed out for properties files (Disabled for Properties).

Am I missing something here? 

0
7 comments

Hello,

Does it help to:

1. remove non-UTF-8 symbols from affected filed
2. re-apply the encoding settings and add the symbols again

0

Thanks for your reply.

I tried your approach but, unfortunately, it didn't solve the problem.

1

Could you please report new issue on YouTrack attaching idea.log ("Help | Show Log in...") after restarting IDE and sampe project example: http://youtrack.jetbrains.com/issues/IDEA. ?

0
Avatar
Permanently deleted user

Hello,

Have you solved this problem please ?

Regards,

0

@Sefi Yassine are you experiencing the same problem? Could you please clarify IDEA build version and steps to reproduce a problem?

0
Avatar
Permanently deleted user

Hello,

I still getting the same error in my environment. The .properties files contains special characters that IDEA does not encode and won't let me edit it (see the picture):

IntelliJ IDEA 2020.3.3 (Community Edition)
Build #IC-203.7717.56, built on March 15, 2021
Runtime version: 11.0.10+8-b1145.96 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.5.15-200.fc31.x86_64
GC: ParNew, ConcurrentMarkSweep
Memory: 1950M
Cores: 6
Non-Bundled Plugins: Springirun, String Manipulation, org.gap.ijplugins.spring.idea-spring-tools, pl.micdev.intellij.fluentsetter
Current Desktop: XFCE

 

0

Please sign in to leave a comment.