h5md-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h5md-user] String encoding


From: Peter Colberg
Subject: [h5md-user] String encoding
Date: Wed, 19 Feb 2014 19:06:32 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

Hi all,

I wish we would have a test suite for H5MD.

Recently we decided to use fixed-length string datatypes for the
attributes defined in H5MD. Unfortunately, with h5py, this forces a
string to be encoded in ASCII; reading a fixed-length string encoded
in UTF-8 will raise an error.

http://docs.h5py.org/en/latest/strings.html#how-to-store-text-strings

Since it is crucial for Fortran programs to *conveniently* write H5MD
metadata such as the author’s name, but less crucial to *conveniently*
read said metadata, I suggest we follow Felix’ earlier proposal, with
the following refinement:

The attributes in h5md/ may be stored using either a fixed-length
ASCII string datatype, or a variable-length UTF-8 string datatype.

Regards,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]