dcramer/sentry — Issue #329: UnicodeEncodeError when replaying a request
Author: acdha
Created: 2012-01-31 19:04:54+00:00
State: open

replay_event (sentry/web/frontend/events.py) can produce an UnicodeEncodeError when asked to encode invalid data from the original request.

It comes down to the point where urlencode calls ``v = quote_plus(str(v))`` (in my case v =```u'Especial:Mudan\ufffd_recentes'```) on a Unicode string. For pysolr I contributed a bit of code which ensures that all of the values have been encoded as UTF-8 so urlencode sees only byte strings:

https://github.com/toastdriven/pysolr/blob/master/pysolr.py#L236-258