- From: Philippe Le Hegaret <plh@w3.org>
- Date: Mon, 02 Jul 2007 13:26:18 +0000
- To: public-sml@w3.org
We were wondering last week if Java included IRI support. The basic answer is no. it's scheduled for the next version: http://java.sun.com/docs/books/tutorial/i18n/network/iri.html One can use the class java.net.URL but you need to apply a conversion: 1- ensure that the IRI is encoded using Unicode characters (since Java is using Unicode, this shouldn't be an issue) 2- percent escape UTF-8 based characters outside the US ASCII range in the IRI path 3- use punycode for the domain name The IRI comparison is then similar to URI. See also http://www.w3.org/International/articles/idn-and-iri/ Philippe
Received on Monday, 2 July 2007 13:26:25 UTC