1

IDEA somehow doesn't truly enable UTF-8 encoding for properties files in the project. Therefore, when I try to use my multilocale properties with cyrrylic characters, it shows a kind of mess. Settings show as follows: "UTF-8 disabled for properties". Is there a way, how to force set UTF-8 for .properties?

Similar topic on intellij blog recomends to set ISO 8859-1 encoding for properties in this case. But shouldn't it work with UTF-8?

Image is attached.enter image description here

  • For legacy reasons, Java properties files are always ISO-8859-1 files. You have the option to create your own InputStreamReader with a different charset, and pass that to [load(Reader)](https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)). – VGR Jul 08 '21 at 17:49
  • see https://stackoverflow.com/questions/4659929/how-to-use-utf-8-in-resource-properties-with-resourcebundle – Marcel Stucki May 16 '23 at 07:54

0 Answers0