Special characters in a TextView

前端 未结 6 877
孤城傲影
孤城傲影 2020-12-09 20:35

I want to show the \"♫\" character in an Android TextView, but it shows [] instead.

This is my code:

txtCatname.setText(\"♫\");
         


        
6条回答
  •  一生所求
    2020-12-09 21:27

    That is common when the source file is encoded as ANSI. Converting the source file as UTF-8 (without BOM) will likely solve the issue.

提交回复
热议问题