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?
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).
2.1m questions
2.1m answers
60 comments
57.0k users