Re: length restrictions on IDN label

Erik Nordmark <[email protected]>
Newsgroups gmane.ietf.idn
Message-ID <[email protected]>
> That's true.  A cursory examination of the Punycode algorithm reveals
> that each ASCII character can represent at most one code point;
> therefore an internationalized label can represent at most 63 code
> points, whether it's ACE or not.  A given encoding uses a bounded number
> of octets per code point, so you can allocate your buffers based on
> that.

63 code points is presumably a conservative number. Given the 4 octet ACE 
prefix you can only fit a 59 octets worth of punycode output per label, hence
presumably 59 code points is a tighter limit for non-ASCII internationalized 
labels while 63 code points is the limit for ASCII labels.

  Erik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.