Skip to content

Autodetection of Character Encodings #4

@michaelnisi

Description

@michaelnisi

In the common use case, streaming a feed over HTTP, we receive the encoding via the Content-Type HTTP header and pass it to our constructor.

But what if we we don't know the encoding upfront? In this case the parser has to use the BOM, so it can reliably read the encoding tag. If no BOM is available use ASCII to read the tag. If this fails, assume UTF-8.

https://www.w3.org/TR/REC-xml/#sec-guessing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions