[Mono-bugs] [Bug 75578][Wis] New - Server.HtmlDecode() fails with french accents

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jul 18 13:50:40 EDT 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 ms_michel at hotmail.com.


--- shadow/75578	2005-07-18 13:50:40.000000000 -0400
+++ shadow/75578.tmp.13986	2005-07-18 13:50:40.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 75578
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: Windos XP Pro
+Status: NEW   
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: ms_michel at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Server.HtmlDecode() fails with french accents
+Description of Problem:
+Server.HtmlDecode() has several problems (at least for Mono 1.1.8 with XSP
+on Windows XP Pro).
+Steps to reproduce the problem:
+1. string accents = "\xe8\xe9\xea\xeb"; // = èéêë =
+2. string encoded = Server.HtmlEncode(accents); // give
+"èéêë" : ok
+3. string decoded = Server.HtmlDecode(encoded);
+Actual Results:
+Nothing to do with original string
+Expected Results:
+èéêë (ie accent)
+How often does this happen? 
+Additional Information:
+After some testing, I found it's ok for "hexa html encoded" strings :
+Server.HtmlDecode("èéêë") : decimal html encoding => ko
+Server.HtmlDecode("ééêë") : hexadecimal html encoding => ok
+There is another problem when encoded string contains html entities :
+Server.HtmlDecode("èéêë") gives 5 characters
+(there is a useless zero at the end).
+In this case, it's ok when I remove last comma :
+Server.HtmlDecode("èéê&euml") gives the "good" result
+for a "bad" input.

More information about the mono-bugs mailing list