.NET Framework 2.0 support for IRI

I've done the investigation on whether .NET FX 2.0 support IRI in the System.Uri class. Here are my findings:

Comparing two Unicode strings with non-ascii characters:
            Uri uriA = new Uri("http://www.zürich.com");
            Uri uriB = new Uri("http://www.zürich.com");

            // returns true
            bool doesCompare = uriA.Equals(uriB);

Comparing two Unicode strings with punycode:

            Uri uriA = new Uri("http://www.zürich.com");
            Uri uriB = new Uri("http://www.xn--zrich-kva.com");

            // returns false
            bool doesCompare = uriA.Equals(uriB);

Thanks!
Bassam

Received on Thursday, 12 July 2007 22:43:49 UTC