[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [idn] length restrictions on IDN label
> 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