I'm pulling a Binary attribute from an LDAP file and converting into text using the following code:
PropertyValueCollection propCol = de.Properties["deftyVectorSteps"]; byte data = (byte)propCol.Value; System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding(); string str = enc.GetString((System.Byte)propCol.Value);
For now, I'm exporting it to a text file so I can see what it looks like. I've attached the text file so you can see what I'm dealing with. The problem is, I'm not sure what the characters are I'm supposed to be parsing on. The characters look like black triangles with a question mark in the center of it. Also I'll see a triangle with a capital D or R after it. I'm not sure what I'm looking at. I've attached the file so you can see what I'm talking about. I need to parse it so it looks like the second file I've attached, and I need to remove those weird characters. There's much much more to what I need to do besides the parsing, but for now, that's where I'm stuck. Can anyone give me any guidance?