tags:

views:

30

answers:

3

How can I display a squared sign in unicode (I checked the Unicode reference and it is not there)?

Also, is it possible to use unicode to display a fraction, for example 3/4 would look as it should with the horizontal vinculum?

A: 

Take a look here: http://en.wikipedia.org/wiki/Unicode_mathematical_operators_and_symbols

You can then use codes to add symbols to your string.

And also be sure your font supports those symbols. Really unicode fonts with all symbols included are about 10-15MB in size, when regular fonts, even mentioned as unicode, can be only 50-100 KB

Alexander K
A: 

Unicode math characters:

Fractions:

Unicode for square is called superscript 2:

  • ²
The MYYN
+1  A: 

For the fraction, you need the combining fraction slash (U+2044): “  ⁄  ”, but you have no guarantee that the client will render it in the same way vulgar fractions such as ¼.

For the squared sign “²”, you'll find it at U+00B2, near all the other superscript digits, and just before the subscript digits.

Agos