Encoding used in resource files is not UTF-8
Encoding used in resource files is not UTF-8
XML supports encoding in a wide variety of character sets. However, not all tools handle the XML encoding attribute correctly, and nearly all Android apps use UTF-8, so by using UTF-8 you can protect yourself against subtle bugs when using non-ASCII characters.
In particular, the Android Gradle build system will merge resource XML files assuming the resource files are using UTF-8 encoding.
Issue id: EnforceUTF8
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |
Last modified: 13 July 2023