Reputation: 307
I'm using Android Studio 1.2, when I create a project, then I open the File Encodings setting window via File -> Settings -> Editor -> File Encodings, there is the Project Encoding option which defaults to GBK
on my computer (Windows 7 64 bit). I could manually change it to UTF-8
for each project, but is there a way to let it default to UTF-8
directly?
Thanks in advance.
Upvotes: 3
Views: 14459
Reputation: 146
Please have a try, it works for me. File -> Other Settings -> Default Settings, then find "File Encodings", change Project Encoding to UTF-8.
Upvotes: 8
Reputation: 3352
Go through File -> Settings -> File Encodings in your Android Studio. See the attached screenshots.
Here, you have 4 options
It will be helpful to you!!
Upvotes: 2