No cyrillic symbols in a string in IntelliJ IDEA

Viewed 209

i've started developing in IntelliJ in Java, created a new gradle project, added a few libraries but encountered a problem that a string is not being filled with cyrillic symbols - instead i get incorrect symbols (screenshot attached). How can i fix it? It has something to do with encodings - I tried a lot of suggestions on the web but nothing helped. Cheers! here is the image

1 Answers

Just change all encodings into UTF-8 (or other preferable encoding) and reload all java files into UTF-8.

You must know how to do first part (if you don't: File(top left corner of your window)>Settings>Editor>File Encodings).

The second part is also easy: just click on encoding in bottom right corner of the window and choose UTF-8 (or other preferable encoding).

Then you will have window like shown below. Choose "Reload" and enjoy. If you still have questions you are free to ask.

Here better description: https://www.jetbrains.com/help/idea/encoding.html

enter image description here

Related