Displaying portuguese characters Android

前端 未结 1 676
一整个雨季
一整个雨季 2021-01-27 15:11

I\'m developing an Android app and when it was suposed to write words like \"não\" or \"cabeça\", with characters with \"~\" or \"ç\" for example, it writes \"ã\" or \"ç\". I

相关标签:
1条回答
  • 2021-01-27 15:44

    Looks like UTF8 interpreted as ISO-8859-x.

    In theory, you could supply the javac compiler -encoding UTF-8 on the command line but that would be the wrong solution.

    Instead, move all your user-facing strings to an XML resource file. In there unicode character encoding works out of the box.

    Further reading: http://developer.android.com/guide/topics/resources/string-resource.html

    0 讨论(0)
提交回复
热议问题