Fixed #5640 -- Added some extra error reporting when smart_unicode() or
commitd965a9f1e6c70597630f38a5a693b7baaeb7b1f3
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Sun, 4 Nov 2007 03:37:04 +0000 (4 03:37 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Sun, 4 Nov 2007 03:37:04 +0000 (4 03:37 +0000)
tree9abb4bddf320090f255eb824f2368ccca368bd53
parentf4a8b188b8768ccf36b8ada4cd113980b58a1459
Fixed #5640 -- Added some extra error reporting when smart_unicode() or
force_unicode() raise a UnicodeDecodeError. This should at least help people
identify which is the bad piece of data they passed in. About the best we can
do here.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/utils/encoding.py