Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the type of character like "@" and how to convert to ASCII

Tags:

c#

Can you any one tell me what is the type of "@" this kind of characters. Is is called Unicode character?

I also want to have full set of this type of characters and also I want to know how to convert them to ascii in C#.

Thanks

like image 921
Mehboob Avatar asked Nov 21 '25 13:11

Mehboob


2 Answers

@ Is HTML Encoding for @ It's also known as HTML Entities.

In C# you can use the httpUtilities class to decode and encode values.

like image 155
Alan Avatar answered Nov 23 '25 03:11

Alan


The sequence

@

is HTML encoding for the character with decimal value 64, which is the @ character.

(Note if you type that sequence into your question without the backticks, it is translated to the @)

You can find out what the actual character is meant to be using a unicode table. The following one is handy because it also provides decimal values:

http://www.ssec.wisc.edu/~tomw/java/unicode.html

like image 22
Eric J. Avatar answered Nov 23 '25 01:11

Eric J.