Skip to content

Explicit mention of UTF-8 BOM in the ABNF? #1088

@DecimalTurn

Description

@DecimalTurn

Currently, there is no mention of UTF-8 BOM in the ABNF. However, since BOM support is now part of the official test suite (toml-lang/toml-test@542746b), perhaps it should be made more explicit that TOML supports optional UTF-8 BOM.

For comparison, RFC 5424 does mention the UTF-8 BOM in its ABNF:

      MSG-UTF8        = BOM UTF-8-STRING
      BOM             = %xEF.BB.BF

For TOML, the change could simply be:

;; Overall Structure

toml = [ utf8-bom ] expression *( newline expression )

utf8-bom = %xEF.BB.BF  ; U+FEFF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions