- From: Philippe Le Hegaret <plh@w3.org>
- Date: Thu, 19 Jul 2007 11:10:27 -0400
- To: public-sml <public-sml@w3.org>
Following http://lists.w3.org/Archives/Public/public-sml/2007Jul/0058.html I've done a series of tests for Java 5. URI uriA = new URI("http://www.ZURICH.com/"); URI uriB = new URI("http://www.zurich.com/"); // returns true boolean doesCompare = uriA.equals(uriB); uriA = new URI("http://www.zurich.com/ZURICH"); uriB = new URI("http://www.zurich.com/zurich"); // returns false boolean doesCompare = uriA.equals(uriB); uriA = new URI("http://www.zurich.com/"); uriB = new URI("http://www.zürich.com/"); // returns false boolean doesCompare = uriA.equals(uriB); uriA = new URI("http://www.zürich.com/"); uriB = new URI("http://www.zürich.com/"); // returns true boolean doesCompare = uriA.equals(uriB); uriA = new URI("http://www.zürich.com/"); uriB = new URI("http://www.xn--zrich-kva.com/"); // returns false boolean doesCompare = uriA.equals(uriB); uriA = new URI("http://résumé.example.org/résumé"); // returns the string "http://r%C3%A9sum%C3%A9.example.org/r%C3%A9sum%C3%A9" uriA.toASCIIString(); Philippe
Received on Thursday, 19 July 2007 15:10:47 UTC