How to show the copyright symbol in a Android dialog?-ThrowExceptions

Exception or error:

I have to show copyright symbol: © in the message of an AlertDialog. I set a string value with the copyright symbol in res/string. But the symbol is shown as a question mark when the dialog opens. How can I correctly show the copyright symbol in the dialog. Thanks.

How to solve:

You can also use the Unicode character for this: “\u00A9 2010 Test”

###

Use © to write © in a String resource:

Copyright © Acme Industries, Inc

becomes

Copyright © Acme Industries, Inc

###

Write it this way:

> String copyright = "Copyright \u00a9 2013, ajdeguzman";

###

Use “\u00a9” it is working exactly as required.

###

very simple, try adding \ before @

Leave a Reply

Your email address will not be published. Required fields are marked *