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

Diego Frata diego.frata at gmail.com
Thu Jul 21 18:56:22 EDT 2011


Thanks for correcting! I had wrong assumptions about the Default encoder.
Diego Frata
diego.frata at gmail.com


On Thu, Jul 21, 2011 at 5:27 PM, Jonathan Pryor <jonpryor at vt.edu> wrote:

> 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
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110721/cea637e9/attachment-0001.html 


More information about the Mono-list mailing list