I'm working on a python application that stores email in a postgresql
database and
I'm encountering the UnicodeEncodeError - while storing a particular
email I receive
this error

UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019'
in position 144: character maps to <undefined>

I'm a little confused about a workaround for this, from what I've
googled the approach seems to be to use the codecs.register_error and
codecs.ignore_errors to skip processing of the offending character. I
haven't been able to find an understandable example though, so if
anyone has one that would be great.

Rob
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to