Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the encoding of the json metadata #81

Open
constantinpape opened this issue Jan 27, 2022 · 2 comments
Open

Specify the encoding of the json metadata #81

constantinpape opened this issue Jan 27, 2022 · 2 comments

Comments

@constantinpape
Copy link
Contributor

should definitely be clarified in the spec. My initial vote would be to do the same as zarr (UTF-8, I think).
cc @mrmh2

@constantinpape constantinpape mentioned this issue Jan 27, 2022
13 tasks
@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/next-call-on-next-gen-bioimaging-data-tools-2022-01-27/60885/11

@joshmoore
Copy link
Member

As far as I can tell https://zarr.readthedocs.io/en/stable/spec/v2.html is silent on the matter, which means in addition to zarr-developers/zarr-specs#121 we may want to clarify the .zattrs expectations at the same time.

For reference from https://tools.ietf.org/id/draft-ietf-json-rfc4627bis-09.html#rfc.section.8.1 :

JSON text SHALL be encoded in UTF-8, UTF-16, or UTF-32. The default encoding is UTF-8, and JSON texts which are encoded in UTF-8 are interoperable in the sense that they will be read successfully by the maximum number of implementations; there are many implementations which cannot successfully read texts in other encodings (such as UTF-16 and UTF-32).

Implementations MUST NOT add a byte order mark to the beginning of a JSON text. In the interests of interoperability, implementations which parse JSON texts MAY ignore the presence of a byte order mark rather than treating it as an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants