[Mono-dev] Why is ANSI code page allways UTF-8?

Kornél Pál kornelpal at gmail.com
Mon Aug 21 13:33:19 EDT 2006


Hi,

In Microsoft .NET Framework ANSI code page is the non-Unicode code page of 
the operating system and Unicode code page is UTF-16. This is a very Windows 
based view of code pages. Encoding.Default uses the ANSI code page as well.

In Mono ANSI code page is UTF-8 and Unicode code page is UTF-16. 
Encoding.Default however is a code page based on environment variables or 
other system settings.

Wouldn't be the same code page used for Encoding.Default more proper for 
interop code instead of UTF-8 as well? Why is UTF-8 preferred over system 
settings?

Kornél 




More information about the Mono-devel-list mailing list