Ddating txt 1251
The fact that this 127 become negative when you put them in an array.
input = (byte)239; // the array contains value -17 now. // But if you cast them to integers, you should use their unsigned value. int output = input & 0x FF; // output is 239 again // you shouldn't cast directly from a single-byte to a char.
Conversion occurs when the String is constructed and then it is done.
Try something the gridview is bound to in your case Product [email protected] Vijay : I agree that its bad idea to enable any Id to be editable, but before going to my module i just create one table containing Prod ID and prod Name.Our visual counterparts want to check you out…that is a reality!So give them a nice representation of who you are and what you like to do by posting a variety of photos.Both the input String and the output String use UTF-16 encoding internally (and you don't normally even need to know or care about that).The only times other encodings come into play are when text data is stored OUTSIDE of a string object - ie in your initial byte array.