4
Answers

display unicode character

i m using bullets in my string in a page of asp.net
i used code
string value="\u2736" + " Essentials of IT";

it gives bullets i want in my local host. but when i upload site on server required bullet is not displaying.
do i need some addition in config file or i have to add some library file in my page?
anyone can help me?

Answers (4)
0
Muhammad younas

Muhammad younas

NA 169 319.8k 12y
i was using firfox. let me check......
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
It might be a browser problem.

I just tried it in Google Chrome and both characters seemed to display OK.
0
Muhammad younas

Muhammad younas

NA 169 319.8k 12y
thnx for reply but this is not working for me actually i m drawing string on image and i want to use black star there. when i use "✶" it is showing it as ✶ when i debug my code using breakpoint and view string as xhtml then it show me star but when i view it as html it show as ✶.
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
'\u2736' is a six-pointed black star (in the Dingbats block) rather than a bullet :

http://www.fileformat.info/info/unicode/char/2736/index.htm

'\u2022' is the character normally used to represent a bullet:

http://en.wikipedia.org/wiki/Bullet_(typography)

However, if you want to display this in an HTML page, then you'll need to use the entity •

string value = "•" + " Essentials of IT";

If you still want to use the black star, then in HTML that'll be:

string value = "✶" + " Essentials of IT";