I am receiving network data that at times can be in unicode. The data is received as a byte array and converted to a string. I need a way of converting the unicode characters correctly.
月 is a two byte unicode character
however in ascii it would look like this:
I need a way to distinguish between ascii and unicode and convert the byte array into a string.