[Mono-bugs] [Bug 73086][Nor] New - The UTF-8 decoding problems
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 27 Feb 2005 07:05:20 -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 svetlanaz@mainsoft.com.
http://bugzilla.ximian.com/show_bug.cgi?id=73086
--- shadow/73086 2005-02-27 07:05:20.000000000 -0500
+++ shadow/73086.tmp.1295 2005-02-27 07:05:20.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 73086
+Product: Mono: Class Libraries
+Version: 1.0
+OS:
+OS Details: Windows XP Professional Service Pack 2
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: svetlanaz@mainsoft.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: The UTF-8 decoding problems
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+The UTF-8 decoder does not return original characters. The
+character "\uFEFF" (bytes FE BB BF) does not returned at all.
+
+
+Steps to reproduce the problem:
+ public static void Main( String[] args )
+ {
+ Encoding utf = Encoding.UTF8;
+ char[] testChars = {'\uFEFF','A'};
+
+ byte[] bytes = utf.GetBytes(testChars);
+ char[] chars = utf.GetChars(bytes);
+
+ foreach (char c in chars)
+ {
+ Console.Write("[{0:x4}] ", (int)c);
+ }
+
+ Console.WriteLine();
+ Console.WriteLine( "Press any key ...");
+ Console.ReadLine();
+ }
+
+Actual Results:
+[0041]
+
+Expected Results:
+[feff] [0041]
+
+How often does this happen?
+Always
+
+Additional Information: