Skip to content

proposal: encoding/xml: ignore invalid characters when Decoder.Strict is false #62217

@ear7h

Description

@ear7h

My particular problem would be solved by checkingDecoder.Strict here:

if !isInCharacterRange(r) {

Alternatively, all character validation (including UTF-8) could be ignored and let Go's 0xfffd take over if a user ever wants a string from StringData.

for len(buf) > 0 {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions