PropertyValueCollection propCol = de.Properties["Password"];
byte[] data = (byte[])propCol.Value;
System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
string str = enc.GetString((System.Byte[])propCol.Value);
string hex = BitConverter.ToString(data);
So this attribute value: 10 09 B5 7B CD 23 D1 91 00 44 F3 B6 61 3A BE 2A 00
should decode to the digits, 22220, but it doesn't. I get these weird characters. Some look like a cross, or a triangle with a question mark. I've tried all the different encodings that I have available, UTF32, UTF7, ASCII, but nothing seems to work. Can anyone lend a hand?
Thanks for any help!
Dave

New Topic/Question
Reply



MultiQuote




|