mirror of https://github.com/scrapy/scrapy.git
request-response: update the consequences of str(b'')
This commit is contained in:
parent
c6746f0e38
commit
e07708e374
|
|
@ -786,8 +786,7 @@ TextResponse objects
|
|||
.. note::
|
||||
|
||||
``str(response.body)`` is not a correct way to convert the response
|
||||
body into a string: you would be using the system default encoding
|
||||
(typically ``ascii``) instead of the response encoding.
|
||||
body into a string: ``str(b'')`` returns ``"b''"``.
|
||||
|
||||
|
||||
.. attribute:: TextResponse.encoding
|
||||
|
|
|
|||
Loading…
Reference in New Issue