Instead of replacing each accent with a Unicode character to match the setup of the UTF-8 project, just add this line to the module application assembly class in the android node:
android {
compileOptions.encoding "ISO-8859-1" // For Spanish [Otherwise strange accents]
Then you do not need to modify any existing data that you wrote, and you can save these strange Spanish characters!
source share