开发者

how can we insert symbol of copyright in application programatically? [closed]

开发者_运维问答 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

how can we insert symbol of copyright in application programatically?? if possible then please provide me example


This is plain old Java, so it should work on Android. The "\u00a9" is Unicode for the copyright symbol.

import java.io.PrintStream;
import java.io.UnsupportedEncodingException;

class foo
{
    public static void main (String args[]) throws UnsupportedEncodingException {
        String unicodeMessage =
            "Copyright \u00a9 My Name";

        PrintStream out = new PrintStream(System.out, true, "UTF-8");
        out.println(unicodeMessage);
    }
}


Here is the ampersand code for the copyright symbol:

   Copyright © 2011, Stack Overflow
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜