Changes between Initial Version and Version 1 of Ticket #26668
- Timestamp:
- May 26, 2016, 4:42:02 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26668 – Description
initial v1 23 23 }}} 24 24 25 Workaround is to replace `response.content` with `unicode(response.content, encoding=settings.DEFAULT_ ENCODING)`. According to what I could find in the docs the content should be encoded with uft-8, I think this issue is because `request.content` is a bytestring without an encoding attached.25 Workaround is to replace `response.content` with `unicode(response.content, encoding=settings.DEFAULT_CHARSET)`. According to what I could find in the docs the content should be encoded with uft-8, I think this issue is because `request.content` is a bytestring without an encoding attached. 26 26 27 27 I'm raising this either in case this in not expected or if it is suggesting a more descriptive error is generated and/or better documentation for those who come across this - there was a *lot* of headscratching needed to find the root of these test failures.