Posted on 2006-10-27
Easy 500 to someone who understands....
Consider the following and tell me why inputBytes does not always equal outputBytes? I think it has something to do with the size of inputBytes but what can I do to coerce input bytes to always be 'convertable' to and from a unicode string?
// inputBytes is created from 'somewhere'
byte outputBytes = Encoding.Unicode.GetBytes(Encoding.GetString(inputBytes));