I am adding tick mark (✔) on a string message on the strings.xml
, but I am getting a \"box\" instead of the tick mark when I am display that on the mobile device.<
Check this android's group thread: Supported unicode characters.
Instead of using an unicode value, I would also recommend you to use a Drawable
inside a TextView
. For example, you can add the drawable to the TextView
using android:drawableRight.
You could use Html.fromHtml to get a Spannable text and set it to your text view. In string.xml you will specify the corresponding HTML entity such as >
Add unicode symbol "\u2713"
to your string resource or you can use it from code as String object.
String checkedMark = "\u2713";
Try using ✓
as the string value, then use Html.fromHtml
to parse the string.