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

后端 未结 9 1981
别跟我提以往
别跟我提以往 2020-11-29 11:15

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

相关标签:
9条回答
  • 2020-11-29 11:29

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

    0 讨论(0)
  • 2020-11-29 11:34

    You can try opening your file with an other text editor, like Notepad++. Sometimes it can detect the correct encoding of your file, using a different pattern than IntelliJ. Then you will be able to use the "Reload..." of IntelliJ.

    0 讨论(0)
  • 2020-11-29 11:36

    My colleague works on Windows while I work on Ubuntu 16.04

    Click the Reload in another encoding, and click the more -> GBK.

    Then we can see the Chinese character.

    0 讨论(0)
  • 2020-11-29 11:38

    I was having the same problem.. and i solved it by changing the CR to CRLF AND then refresh the project like done in following image

    CHOOSE CRLF (image)

    0 讨论(0)
  • 2020-11-29 11:40

    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'

    0 讨论(0)
  • 2020-11-29 11:41

    I was having the same problem. i was try many more time to solved this issue but i cant get actual progress but i'm Solving this problem with decrease android studio version its work fine and 100%

    Download Link : https://android-studio.en.uptodown.com/windows/download (3.2.1.0)

    0 讨论(0)
提交回复
热议问题