I want to send a string through a socket.
So, i convert string into array of bytes.
System::String ^st = "ÿÿÿÿdetails\x00";
array<Byte>^ msg = Encoding::ASCII->GetBytes(st);
And when i convert back the array bytes to a string , i get a different string.
System::String ^t = Encoding::ASCII->GetString(msg);
MessageBox::Show(t,"asd");
The string t is "????details". Can some one please help me . I want to know how to convert the string into array of bytes . Thank You