IDN Internation Domain Names?

Hi,

any library for ruby to convert domain names from and to
IDN?

regards
Hadmut

Not that I know of, but aren't they supposed to just be UTF-8?

-austin

···

On 7/22/05, Hadmut Danisch <x5@danisch.de> wrote:

any library for ruby to convert domain names from and to
IDN?

--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca

> any library for ruby to convert domain names from and to
> IDN?

Not that I know of, but aren't they supposed to just be UTF-8?

Me too not sure,if therez any......But whats the need of it.

Dibya

···

On 7/25/05, Austin Ziegler <halostatue@gmail.com> wrote:

On 7/22/05, Hadmut Danisch <x5@danisch.de> wrote:

-austin
--
Austin Ziegler * halostatue@gmail.com
              * Alternate: austin@halostatue.ca

No, they are encoded using Punycode:

With a quick search for "ruby punycode", I found:

http://raa.ruby-lang.org/project/punycode4r/

And it seems to work:

Punycode.encode(Iconv.iconv("UCS-4LE", "ISO-8859-15", "bücher")[0])
=> "bcher-kva"

(From the wikipedia article: "bücher.ch would be represented as xn--bcher-kva.ch in IDNA")

Punycode.encode seems to expect "UCS-4LE" encoded strings.

HTH,
Dominik

···

On Mon, 25 Jul 2005 00:40:55 +0200, Austin Ziegler <halostatue@gmail.com> wrote:

On 7/22/05, Hadmut Danisch <x5@danisch.de> wrote:

any library for ruby to convert domain names from and to
IDN?

Not that I know of, but aren't they supposed to just be UTF-8?