Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File was loaded in the wrong encoding:'UTF-8' in IntelliJ IDEA

Before asking the question, I searched for a similar question on StackOverflow:

file was loaded in the wrong encoding: 'UTF-8' in android studio

But it did not give an explicit answer there.


My issue is that the project is downloaded from the network, and it is an eclipse project, I open it with IntelliJ IDEA, and get this issue:

enter image description here

like image 521
qg_java_17137 Avatar asked Apr 01 '17 06:04

qg_java_17137


2 Answers

As Tarik point out, click the Reload in another encoding, and if you want UTF-8 encoding, then click the more -> UTF-8.

like image 57
aircraft Avatar answered Oct 17 '22 16:10

aircraft


in my case , when i uploaded the first .ttf file in assert folder , android studio asked me to choose one file type , and when I selected text type . this problem start to appear . the right file type is : 'Files Opened In Associated Applications'. to fix your problem , you have to open preferences ->Editor ->File Types and search for .ttf extension then remove it and add it again under 'Files Opened In Associated Applications' enter image description here

enter image description here

like image 3
soufien karray Avatar answered Oct 17 '22 16:10

soufien karray