Special characters in a TextView
android, character, textview
Solution
You can use an Unicode code: http://unicode-table.com/en/.
Such as:
txtCatname.setText("\u266b");
or alternatively use an iconic font, such as font awesome: http://fortawesome.github.io/Font-Awesome/
Use this alternative (or any other iconic font you like), in case this character isn't supported (not all Unicode characters are supported).
Problem
I want to show the "♫" character in an Android TextView, but it shows [] instead. This is my code: ``` txtCatname.setText("♫"); ``` How can I display this symbol correctly?