IDNA

Rob Butler wrote:
> Hello,
>>>> I've been looking into IDNA a bit lately and unfortunately I think most IDNA libraries may have a bug. I'm looking for some feedback on this to see if I am wrong or if the libraries do in fact have a bug. The primary reason I question whether this is a bug or not is it seems everyone has the same bug.
>>>> IDNA encoding is performed on a label by label basis. First the domain name must be broken down into labels and then each label encoded in turn. Most IDNA libraries don't seem to account for dots embedded within a label.
>I vote for bug. I looked into IDN as part of dnspython, and ended up
writing a wrapper around python's encodings.idna module that does
label-by-label encoding and handles escapes (dns.name.from_unicode()).
/Bob