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).
1.4m articles
1.4m replys
5 comments
57.0k users