I have a byte array that needs decoding into a string. However, I don't know the format of the string - UTF-8, UTF-16, etc.
What's the most effective way to decode the byte array in .Net? Or is trial and error the only real solution?
I have a byte array that needs decoding into a string. However, I don't know the format of the string - UTF-8, UTF-16, etc.
What's the most effective way to decode the byte array in .Net? Or is trial and error the only real solution?