How to show the copyright symbol in a Android dialog?

Android

Android Problem Overview


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.

Android Solutions


Solution 1 - Android

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

Solution 2 - Android

Use © to write © in a String resource:

Copyright © Acme Industries, Inc

becomes

Copyright © Acme Industries, Inc

Solution 3 - Android

Write it this way:

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

Solution 4 - Android

Use "\u00a9" it is working exactly as required.

Solution 5 - Android

very simple, try adding \ before @

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser256239View Question on Stackoverflow
Solution 1 - AndroidhvdmView Answer on Stackoverflow
Solution 2 - AndroidonosendaiView Answer on Stackoverflow
Solution 3 - AndroidajdeguzmanView Answer on Stackoverflow
Solution 4 - AndroidSachin SuryavanshiView Answer on Stackoverflow
Solution 5 - AndroidRona IdeaView Answer on Stackoverflow