To insert Unicode special characters (including mathematical characters) into Android via XML, all you have to do is include the HTML code for the Unicode character with <uni-code>; in XML. For example, if you want to display the mathematical symbol "Pi" as a button of your XML file that corresponds to your activity (for example, main.xml), in main.xml there will be the following:
<Button ... android:text="@string/button_pi" ... </Button>
Then you specify the string resource 'button_pi' specified above in the strings.xml file as described below
<string name="button_pi"> Π</string>
Now, when you create and run your code, you will see that the pi symbol displays well in your view. The links below provide a complete HTML code table for the entire set of uni code characters (including all special characters)
http://www.w3schools.com/tags/ref_symbols.asp
http://www.ascii.cl/htmlcodes.htm
sri_s source share