Skip to content

skip first BOM test is invalid #2

Closed
@gsnedders

Description

@gsnedders

JSON transmits abstract Unicode strings, so a leading U+FEFF is a ZWNBSP and not a BOM. As such, the expectation should be that it is tokenized as "\ufefffoo\uffeff".

Of course, if you were to serialize it as UTF-16-BE and then parse it as UTF-16, then yes, you would have a BOM, but this is not the case.

/prod @davidflanagan given it's his TC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions