This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients giampaolo.rodola, loewis, r.david.murray
Date 2010-08-26.22:54:56
SpamBayes Score 8.835408e-05
Marked as misclassified No
Message-id <4C76F0BE.3060509@v.loewis.de>
In-reply-to <1282861914.72.0.289913312602.issue9682@psf.upfronthosting.co.za>
Content
> Ah, I wondered if it was something like that
> (encoding=>UnicodeError).  It's not really a *unicode* error, it's a
> syntax error in the domain name construction (ie: it is invalid
> whether or not unicode is involved, it just isn't caught in 2.x for
> non-unicode domain names), but oh well.

It's perhaps dubious whether IDNA is an encoding at all. Punycode
certainly is, but IDNA only applies to (DNS) names. However, if
you take the stance that IDNA converts Unicode names into bytes
names, and is therefore an encoding, then this encoding is undefined
for certain Unicode strings. If the encoding is undefined, the exception
is a UnicodeError (unless there are errors in the code
of the codec itself, such as MemoryErrors, but that's not the case
here).
History
Date User Action Args
2010-08-26 22:54:58loewissetrecipients: + loewis, giampaolo.rodola, r.david.murray
2010-08-26 22:54:56loewislinkissue9682 messages
2010-08-26 22:54:56loewiscreate