Android Studio Project Encoding Default Value

社会主义新天地 提交于 2021-01-21 10:17:26

问题


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.


回答1:


Please have a try, it works for me. File -> Other Settings -> Default Settings, then find "File Encodings", change Project Encoding to UTF-8.




回答2:


Go through File -> Settings -> File Encodings in your Android Studio. See the attached screenshots.

Here, you have 4 options

  1. Change project encoding to match UTF-8. enter image description here
  2. Change IDE encoding to match other encoding. enter image description here
  3. Change Default encoding for properties files. enter image description here
  4. See the current encoding of your file at the bottom right corner of Android studio. You can also change it there. enter image description here

It will be helpful to you!!



来源:https://stackoverflow.com/questions/30184062/android-studio-project-encoding-default-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!