How to show the copyright symbol in a Android dialog?

前端 未结 5 502
误落风尘
误落风尘 2021-01-31 07:17

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 whe

相关标签:
5条回答
  • 2021-01-31 07:39

    very simple, try adding \ before @

    0 讨论(0)
  • 2021-01-31 07:40

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

    0 讨论(0)
  • 2021-01-31 07:47

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

    0 讨论(0)
  • 2021-01-31 07:49

    Write it this way:

    > String copyright = "Copyright \u00a9 2013, ajdeguzman";
    
    0 讨论(0)
  • 2021-01-31 07:57

    Use © to write © in a String resource:

    Copyright © Acme Industries, Inc

    becomes

    Copyright © Acme Industries, Inc

    0 讨论(0)
提交回复
热议问题