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 chfoo
Recipients chfoo
Date 2014-03-30.17:57:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396202273.23.0.997989439656.issue21103@psf.upfronthosting.co.za>
In-reply-to
Content
When encoding a string with the IDNA codec I expected that it will always raise an exception with empty labels. When I do this

    >>> 'example.c…'.encode('idna').decode('ascii')

it returns

    'example.c...'

instead of raising UnicodeError. The original string ends with U+2026 HORIZONTAL ELLIPSIS if you can't see it clearly. These strings are coming from web pages in a web crawler.

I tested this on Python 3.4, 3.3.2, 2.7.5, 2.6.9.
History
Date User Action Args
2014-03-30 17:57:53chfoosetrecipients: + chfoo
2014-03-30 17:57:53chfoosetmessageid: <1396202273.23.0.997989439656.issue21103@psf.upfronthosting.co.za>
2014-03-30 17:57:53chfoolinkissue21103 messages
2014-03-30 17:57:52chfoocreate