Skip to content
Myr

Corrent HTTP -> HTML in quickstart doc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tal Einat · committed by Tal Einat · parent d55de2d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/user/quickstart.rst+1 added-1 removed
108 unmodified lines
109110If you change the encoding, Requests will use the new value of ``r.encoding``111whenever you call ``r.text``. You might want to do this in any situation where112you can apply special logic to work out what the encoding of the content will113be. For example, HTTP and XML have the ability to specify their encoding in113be. For example, HTML and XML have the ability to specify their encoding in114their body. In situations like this, you should use ``r.content`` to find the115encoding, and then set ``r.encoding``. This will let you use ``r.text`` with116the correct encoding.117
430 unmodified lines