for example I get the input from remote host something like this : "Ä"
or some other character "Ì" or "Œ"
I want to convert this character to decimal and check the bits.
for example I get the input from remote host something like this : "Ä"
or some other character "Ì" or "Œ"
I want to convert this character to decimal and check the bits.
You can not check bits because a decimal value is also a String. (If you
meant the Decimal type to store the character code, you would have chosen
the wrong type.)
If you receive an "Ä", it is _not_ ASCII. ASCII does not contain the German
"Umlaut". If you have a String, it's a Unicode string. You can convert it by
using
You need to know exactly what numeric type the characters represent. It
could be unsigned integer, integer or floating point (as examples) and it
could be one of a variety of different sizes. Even if it's simple integer it
could be big-endian or little-endian, which affects the conversion.
Routines are available for almost any type of conversion, but there are some
built-in to .NET. See, for instance:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.