Re: ACTION-93: suggest a resolution to IRI support

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