[Mono-bugs] [Bug 76758][Maj] Changed - String with nonstandard characters is not handled correctly.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Dec 6 22:50:51 EST 2005


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 sebastien at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76758

--- shadow/76758	2005-11-28 18:59:15.000000000 -0500
+++ shadow/76758.tmp.12280	2005-12-06 22:50:51.000000000 -0500
@@ -85,6 +85,25 @@
 "Under CentOS 3.4 and Mono 1.1.10" case seems to be incorrect as you 
 should not see UTF-8 bytes you should see characters.
 
 ------- Additional Comments From admin at svwebhosting.com  2005-11-28 18:59 -------
 I compiled using Visual Studio 2003 on Windows XP. Source is VB.NET
 and was has already been attached to this ticket.
+
+------- Additional Comments From sebastien at ximian.com  2005-12-06 22:50 -------
+Here are my results on NLD9 (tested with both your EXE and with an MCS
+compiled binary):
+
+My String: ÿÿÿÿgetstatus
+String Bytes:
+195  191  195  191  195  191  195  191  103  101  116  115  116  97 
+116  117  115
+
+So you may have two issues here. The first is how the text is
+displayed on the console. Mine works, yours don't. That's a config
+problem outside Mono.
+
+The second problem is that you shouldn't use Default (i.e.
+System.Text.Encoding.Default.GetBytes) if you have a specific
+requirements on encoding. If you need to interop with other computers
+you should be using a specific encoding (e.g. ASCII, UTF8, Unicode...)
+that do not depend on your configuration.


More information about the mono-bugs mailing list