Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6621
| Date | 2011-07-27 19:29 -0400 |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: java.net.IDN jar for JDK 1.5? |
| References | <j0m4k8$4kk$1@news.albasani.net> <4e2f3f6c$0$302$14726298@news.sunsite.dk> <j0of8d$dj5$1@news.albasani.net> |
| Message-ID | <4e309f62$0$304$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
On 7/27/2011 3:37 AM, Jan Burse wrote: > 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. > 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. I assume that native Java means pure Java. > 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? I still think libidn is your best option. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
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