[Mono-bugs] [Bug 51530][Wis] New - chinese Encoding problem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Mar 2004 16:44:31 -0500 (EST)


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 bmaurer@users.sf.net.

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

--- shadow/51530	2004-03-24 16:44:31.000000000 -0500
+++ shadow/51530.tmp.411	2004-03-24 16:44:31.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 51530
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: shiziye@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: chinese Encoding problem
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+see code block below
+  Encoding e = System.Text.Encoding.GetEncoding("gb2312");
+  byte[] b = new byte[]{0xC4, 0xE3, 0xBA, 0xC3};
+                                                                          
+      string s = e.GetString(b);
+  byte[] b2 = e.GetBytes(s);
+                                                                      
+Actual Results:
+  b2 = {0x92, 0xAD, 0x8D, 0x9C};
+
+Expected Results:
+  b2 should equal to b
+
+How often does this happen? 
+  every time;
+
+Additional Information:
+  there are many encoding problem with mono
+
+------- Additional Comments From bmaurer@users.sf.net  2004-03-24 16:44 -------
+*** Bug 53841 has been marked as a duplicate of this bug. ***