[Mono-bugs] [Bug 79458][Nor] New - ANSI strings are UTF-8 but should be in native encoding

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 21 07:50:47 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by kornelpal at gmail.com.


--- shadow/79458	2006-09-21 07:50:47.000000000 -0400
+++ shadow/79458.tmp.22066	2006-09-21 07:50:47.000000000 -0400
@@ -0,0 +1,30 @@
+Bug#: 79458
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: interop
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: kornelpal at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: ANSI strings are UTF-8 but should be in native encoding
+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.
+I think the code page used for Encoding.Default would be more proper for 
+interop ANSI strings as well because that is based on the system settings 
+and is probably in use on system that may differ from UTF-8.

More information about the mono-bugs mailing list