From dc4d1de848f4b7239f9b1dcc0310ff4f0a5ad94e Mon Sep 17 00:00:00 2001 From: Simeon Warner Date: Wed, 18 Nov 2020 18:53:10 -0500 Subject: [PATCH] Require UTF-8 encoded JSON --- draft/spec/index.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/draft/spec/index.html b/draft/spec/index.html index 66120fc..b68c0e6 100644 --- a/draft/spec/index.html +++ b/draft/spec/index.html @@ -594,9 +594,10 @@

Digests

Inventory

An OCFL Object Inventory MUST follow the JSON (defined by [[!RFC8259]]) structure - described in this section and MUST be named inventory.json. The order of - entries in both the JSON objects and arrays used in inventory files has no significance. An OCFL Object - Inventory MUST NOT contain any keys not described in this specification. + described in this section with contents encoded in UTF-8, and MUST be named + inventory.json. The order of entries in both the JSON objects and arrays used in inventory + files has no significance. An OCFL Object Inventory MUST NOT contain any keys not + described in this specification.

The forward slash (/) path separator MUST be used in content paths in the @@ -992,9 +993,10 @@

Root Structure

a storage root.

- An OCFL Storage Root MAY contain a JSON file named ocfl_layout.json to describe the arrangement - of directories and OCFL objects under the storage root. If present, this JSON document - MUST include the following two keys in the root JSON object: + An OCFL Storage Root MAY contain a file named ocfl_layout.json to describe the arrangement of + directories and OCFL objects under the storage root. If present, ocfl_layout.json + MUST be a JSON (defined by [[!RFC8259]]) document encoded in UTF-8 and include the + following two keys in the root JSON object: