Skip to main content

Response.decode_as_text

decode_as_textencoding

Group: Conversions
Aliases: parse as text

Documentation

Decodes the body to a Text value.

Arguments

  • encoding: The encoding to use. If not specified, the encoding is inferred from response headers. If that fails, UTF-8 is used as the fallback.