I have to show registered Ⓡ and trademark ™ symbol , in the message of an AlertDialog
. I set a sting value with the registered and trademark symbol in res/string. But the symbol is shown as a question mark when the dialog opens. How can I correctly show the these symbols in the dialog. Thanks.
try this
for Ⓡ symbol use ®
and trademark ™ symbol ™
for Ⓡ symbol use ® and trademark ™ symbol ™
Keep the value in resources folder where strings are stored, it should work as I currently tested the same and its working. See the dialog, I am attaching the screenshot for same.!
This might help you, use:
<string name="MY_STRING">&reg;</string>
See Display ® registered trademark symbol in Android v4.0 WebView?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.