[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 23:36:57 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 admin at svwebhosting.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76758
--- shadow/76758 2005-12-06 22:50:51.000000000 -0500
+++ shadow/76758.tmp.12944 2005-12-06 23:36:57.000000000 -0500
@@ -104,6 +104,37 @@
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.
+
+------- Additional Comments From admin at svwebhosting.com 2005-12-06 23:36 -------
+I have tested with all encodings on CentOS and they all give the wrong
+results
+
+-------------------------------------------------
+Using System.Text.Encoding.Default.GetBytes:
+195 191 195 191 195 191 195 191 103 101 116 115 116 97 116 117 115
+
+-------------------------------------------------
+Using System.Text.Encoding.ASCII.GetBytes:
+63 63 63 63 103 101 116 115 116 97 116 117 115
+
+-------------------------------------------------
+Using System.Text.Encoding.BigEndianUnicode.GetBytes:
+0 255 0 255 0 255 0 255 0 103 0 101 0 116 0 115 0 116 0 97 0 116 0 117
+0 115
+
+-------------------------------------------------
+Using System.Text.Encoding.Unicode.GetBytes:
+255 0 255 0 255 0 255 0 103 0 101 0 116 0 115 0 116 0 97 0 116 0 117 0
+115 0
+
+-------------------------------------------------
+Using System.Text.Encoding.UTF7.GetBytes:
+43 65 80 56 65 47 119 68 47 65 80 56 45 103 101 116 115 116 97 116 117 115
+
+-------------------------------------------------
+Using System.Text.Encoding.UTF8.GetBytes:
+195 191 195 191 195 191 195 191 103 101 116 115 116 97 116 117 115
+
More information about the mono-bugs
mailing list