Nick Barnes <[EMAIL PROTECTED]> added the comment: 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.
Added file: http://bugs.python.org/file12179/utf7patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4426> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com