DolDurma
DolDurma

Reputation: 17340

Android Studio could load file contents correctly

i interested to know why my android studio couldn't load file content correctly? this is simple screen shot as what happened for my application

enter image description here

is anybody could help me to resolve this problem?

Upvotes: 1

Views: 248

Answers (2)

IntelliJ Amiya
IntelliJ Amiya

Reputation: 75788

Read Mismatched Encoding

The encoding used to compile your project is specified in the build.gradle files. The default, which is used when no specific encoding is specified, is UTF-8. We strongly recommend you use UTF-8 encoding whenever possible.

File -> Settings-> Search -> File Encoding->Global Encoding->UTF-8

enter image description here

Upvotes: 2

Bryan Johnson
Bryan Johnson

Reputation: 46

This looks like an encoding issue. In Android Studio the encoding is set to UTF-8, but I don't see it specified in Notepad. In Notepad, use the Save As dialog and set the Encoding dropdown to UTF-8. It should then load properly in Android Studio.

Upvotes: 2

Related Questions