W3C home > Mailing lists > Public > public-sml@w3.org > July 2007

.NET Framework 2.0 support for IRI

From: Bassam Tabbara <bassamt@windows.microsoft.com>
Date: Thu, 12 Jul 2007 12:43:01 -0700
To: "public-sml@w3.org" <public-sml@w3.org>, "plp@w3.org" <plp@w3.org>, "cmsmcq@w3.org" <cmsmcq@w3.org>
Message-ID: <4C2ACD9EEB9A65468ED31F2A5A6397430352A55F50@tk5-exmlt-w600.wingroup.windeploy.ntdev.microsoft.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:56:04 UTC