Main Site Documentation

Ascii/extended ascii byte array


#1

I have a byte array that was populated by a Read from a text file. It contains extended ascii characters. This encoding does not work converting the byte array to a string:

        string s = System.Text.Encoding.UTF8.GetString(buf, 0, buf.Length);

Is there another method I should be calling ?


#2

TinyCLR supports UTF8 only.