Skip to content

Gracefully handle fields whose encoding is unknown to Ruby #580

Open
@bpot

Description

@bpot

Ruby19.b_value_decode (and probably q_value_decode) may cause an ArgumentError: unknown encoding XXXX exception if they call #force_encoding with an encoding Ruby doesn't know about.

We should either silently fail to decode the field or raise a more specific exception.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions