[Mono-list] Encoding Issue .Net vs. Mono
Tim Nelson
nelson.timothy at gmail.com
Thu Jul 21 14:42:09 EDT 2011
New to Mono, but I am getting a strange result when Encoding bytes and
returning a string:
int n = System.Text.Encoding.Default.GetString(new byte[] { 0,
194, 146, 215 }).Length;
On .Net, this returns 4.
On Mono, this returns 3.
If I change the second byte 194 to 193 ... both systems return 4.
Is this a Mono bug or my lack of experience with encoding? If it is
a bug, is there a way around this?
More information about the Mono-list
mailing list