decode()
Decode bytes to a string.
Usage
decode(
data,
encoding="utf-8",
)Parameters
data: bytes-
The bytes to decode.
encoding: str = "utf-8"-
The character encoding to use.
Returns
str-
The decoded string.
Decode bytes to a string.
Usage
data: bytesThe bytes to decode.
encoding: str = "utf-8"The character encoding to use.
strThe decoded string.