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

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

From: Philippe Le Hegaret <plh@w3.org>
Date: Mon, 02 Jul 2007 13:26:18 +0000
To: public-sml@w3.org
Message-Id: <1183382778.4222.6.camel@localhost>

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

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