Skip to content

Response.prototype.text() should support lossy decoding #1081

Open
@guybedford

Description

@guybedford

We currently implement this as throwing on invalid UTF8 bytes, but per https://encoding.spec.whatwg.org/#utf-8-decode we should handle lossy string conversion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions