Android add symbol tm (trademark) to text
3 answers
To add any special character, you just need to find the Unicode character. Then you can add it to the line like below:
StringBuilder myString = new StringBuilder();
char myUnicodeChar = '\u2122';
myString.append(myUnicodeChar);
Or, as @Elliott suggested, you can just use a literal:
StringBuilder myString = new StringBuilder();
char myUnicodeChar = 'β’';
myString.append(myUnicodeChar);
To find a special character, you can simply specify the character name + "Unicode" in a Google search, or use one of the following links to find it:
+1
source to share