Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6608

Re: java.net.IDN jar for JDK 1.5?

From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: java.net.IDN jar for JDK 1.5?
Date 2011-07-27 09:37 +0200
Organization albasani.net
Message-ID <j0of8d$dj5$1@news.albasani.net> (permalink)
References <j0m4k8$4kk$1@news.albasani.net> <4e2f3f6c$0$302$14726298@news.sunsite.dk>

Show all headers | View raw


Arne Vajhøj schrieb:
> On 7/26/2011 6:24 AM, Jan Burse wrote:
>> Just noticed that JDK 1.6 has the new class java.net.IDN,
>> which provides Namerep and Punycode.
>>
>> Any .jar file around that can be used to add this
>> functionality (this class) to JDK 1.5?
>
> GNU libidn has a Java implementation.
>
> Arne
>
>
http://www.gnu.org/software/libidn/
They write: A native Java and C# port is included.

Does it mean the Java lib just calls C? Or is
it a pure Java implementation? I am thinking
about bundling the jar with an applet, so when
it uses some native component then it would be
problematic.

There is indeed some sun lib which has for
example Punycode:

	package sun.net.idn;
	public final class Punycode;

But using such libraries does not work,
because for example an Oracle applet does bar
the package sun.* from use in an applet. One will
get an exception. Which makes sense, since different
applet provides might have different internal
libraries.

I guess sun.net.idn is old, judging from the change log:
http://www.docjar.com/html/api/sun/net/idn/Punycode.java.html

Maybe there is a com.ibm.icu jar?

Bye



Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

java.net.IDN jar for JDK 1.5? Jan Burse <janburse@fastmail.fm> - 2011-07-26 12:24 +0200
  Re: java.net.IDN jar for JDK 1.5? lewbloch <lewbloch@gmail.com> - 2011-07-26 14:28 -0700
    Re: java.net.IDN jar for JDK 1.5? Jan Burse <janburse@fastmail.fm> - 2011-07-26 23:33 +0200
  Re: java.net.IDN jar for JDK 1.5? Arne Vajhøj <arne@vajhoej.dk> - 2011-07-26 18:27 -0400
    Re: java.net.IDN jar for JDK 1.5? Jan Burse <janburse@fastmail.fm> - 2011-07-27 09:37 +0200
      Re: java.net.IDN jar for JDK 1.5? Arne Vajhøj <arne@vajhoej.dk> - 2011-07-27 19:29 -0400

csiph-web