Author: gert
Date: 2008-02-10 03:18:22 -0500 (Sun, 10 Feb 2008)
New Revision: 95359
Modified:
trunk/gert/standalone/bug357053/test.cs
Log:
Use UTF-8 encoding.
Modified: trunk/gert/standalone/bug357053/test.cs
===================================================================
--- trunk/gert/standalone/bug357053/test.cs 2008-02-10 07:59:17 UTC (rev
95358)
+++ trunk/gert/standalone/bug357053/test.cs 2008-02-10 08:18:22 UTC (rev
95359)
@@ -19,7 +19,7 @@
HttpWebResponse response = (HttpWebResponse)
request.GetResponse ();
using (StreamReader sr = new StreamReader
(response.GetResponseStream (), Encoding.GetEncoding ("iso-8859-1"), true)) {
string result = sr.ReadToEnd ();
- if (result.IndexOf ("<p>Umlaute: ���</p>") ==
-1) {
+ if (result.IndexOf ("<p>Umlaute: öäü</p>") ==
-1) {
Console.WriteLine (result);
return 1;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches