2011-01-10 21 views

回答

1

這是普通的Java,所以它應該在Android上工作。 「\ u00a9」是版權符號的Unicode。

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); 
    } 
} 
-1

這裏是版權符號的符號代碼:

Copyright © 2011, Stack Overflow 
相關問題