[Mono-list] Encoding Issue .Net vs. Mono

Jonathan Pryor jonpryor at vt.edu
Thu Jul 21 16:27:21 EDT 2011


On Jul 21, 2011, at 2:47 PM, Pablo Ruiz wrote:
> Mono uses UTF8 as default encoding. .Net uses UTF16

Note quite. Encoding.Default is "ANSI", which is…~anything on .NET (latin1, Shift-JIS, Big-5, whatever), but _not_ Unicode or UTF-8. On Mono, Encoding.Default is always UTF-8.

	http://msdn.microsoft.com/en-us/library/system.text.encoding.default.aspx

This won't change anytime soon.

The problem is that the byte sequence { 0, 193, 146, 215 } is meaningless without an encoding to interpret it, and .NET and Mono use different default encoding.

 - Jon



More information about the Mono-list mailing list