Message 76704 - Python tracker

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.

Content
Here is my patch.  This is a rewrite of the UTF7 encoder and decoder. 
It now handles surrogate pairs correctly, so non-BMP characters work
with this codec.  And my motivating example ('/'.decode('utf7')) works
OK.  I'm not totally confident of the error-handling code here, but in
'strict' mode this is definitely a better codec than the one it
replaces.  This patch is based on the Python 2.6 distribution.