Skip to content
RegisterBench

W1-306 - Instance documents must use UTF-8 encoding (Reception)

ESA technical check 306: every file of the package must be UTF-8 encoded; moved to the blocking reception layer after bad encodings corrupted text fields.

Layer
W1a
Category
Reception
Severity
blocking
Taxonomy version
eba-4.0-errata5

Last reviewed:

Content last changed:

Official control text (EBA, verbatim)

XBRL instance documents must use UTF-8 encoding.

Comment in the EBA artifact (verbatim):

Moved from DPM Technical Checks to Technical checks as a blocking rule. 
Incorrect encoding causing corrupted data for the text fields to be integrated. Therefore, it became necessary to make it blocking 

What this rule checks

The control text speaks of XBRL instance documents; the DORA register travels in the plain-csv profile (check 115: a zip containing plain-csv), so the encoding requirement lands on the files inside the package - the csv and json files the receiving side decodes. The source rule is named in the filing rules (measured quote, FR v5.5 rule 1.4, p. 13): "encodingNotUtf8: XBRL reports MUST use UTF-8 encoding. [GFM11, p. 11]".

The artifact comment documents the history as a fact: the check was moved from the "DPM Technical Checks" sheet to "Technical checks" as a blocking rule, because incorrect encoding corrupted the data of text fields at integration. A file in a wrong encoding is therefore stopped at reception, before any content rules run.

In RegisterBench the encoding has one definition on the writer side: class EsaCsvFormat, whose ContentEncoding is UTF-8 without BOM; the test class EsaCsvFormatTests pins it (test EncodingIsUtf8WithoutBom). On import the reader decodes strictly: a BOM or bytes that are not valid UTF-8 become entries of the import problem report, not a crash (class EsaPackageReader).

This is an ESA technical check (layer W1a, severity: blocking). If it fails, the package is technically rejected on receipt (feedbackMain = REJECTED). RegisterBench has no runtime finding for it: the package writer satisfies it by construction, which is proven by golden tests, not by a validation message.

Most common causes

  • A csv from the package was opened and re-saved by a spreadsheet or editor in a legacy 8-bit encoding - national characters in text fields stop being valid UTF-8.
  • A file was saved as UTF-16 ("Unicode" in some save dialogs) - the whole file stops decoding as UTF-8.
  • A package built by another tool writes its csv files in the tool's default system encoding instead of UTF-8.

How to fix it, step by step

  1. If the package was exported by RegisterBench and not edited afterwards, this check cannot fail - first check whether any file was re-saved by another editor or tool.
  2. Open the flagged file in an editor that shows the encoding; text fields with national characters are where a wrong encoding shows first.
  3. Do not convert files by hand for the submission - export the package again from RegisterBench; it writes UTF-8 without BOM.
  4. When importing a foreign package, read the import problem report - a bad encoding is listed there per file.

Example: fails vs passes

Fails - a file inside the package is not valid UTF-8:

State in the package Problem
a template csv re-saved in a legacy 8-bit encoding bytes of national characters in text fields are not valid UTF-8 - the artifact comment names corrupted text fields as the reason this check became blocking
a csv saved as UTF-16 the whole file fails to decode as UTF-8

Passes - the behavior of the product writer:

State in the package Result
every file written as UTF-8 without BOM (the csv files via class EsaCsvFormat) all files decode as UTF-8; text fields integrate uncorrupted
  • 115 - the package must be a zip containing plain-csv; 306 governs the encoding of those files.
  • 103 - the zip must open at all before the file contents are decoded.
  • 809 - a decoded row that does not parse is a csv formatting problem (809); bytes that do not decode are an encoding problem (306).

This page describes what the software does. It is neither legal advice nor an interpretation of any regulation, and using the product does not by itself make any submission complete, correct or acceptable to any authority. The responsibility for what is filed stays with the entity that files it.