SimpleHelpers.Net icon indicating copy to clipboard operation
SimpleHelpers.Net copied to clipboard

CheckForByteOrderMark fails to recognize Unicode Little-Endian

Open aktzbn opened this issue 7 years ago • 1 comments

I think you need add clause

            else if (rawData[start + 1] == 0xfe && rawData[start] == 0xff)
            {
                // Encoding.Unicode (Little-Endian)
                return true;
            }

to CheckForByteOrderMark function.

aktzbn avatar Mar 28 '17 10:03 aktzbn

@aktzbn sorry for the late reply. Could you submit a PR? thanks

khalidsalomao avatar Oct 17 '19 19:10 khalidsalomao