Create external link with correct character encoding?

Hello!

Using the C library on a POSIX platform, if I create an external link using H5Lcreate_external() with the same name as provided in a H5L_iterate2_t callback function call from an H5Lvisit() call, do I have to set the character encoding on the link creation property list that is passed to H5Lcreate_external() to be the same as info->cset where info is the argument supplied to the callback function? To do this, I’d create a link creation property list, lcpl_id with H5Pcreate(H5P_LINK_CREATE) and then set the character encoding on it with H5Pset_char_encoding(lcpl_id, info->cset).

Sorry, I feel like I’ve got a significant gap in my understanding of how character sets/encodings are supposed to work in the HDF5 library. Is there HDF5 documentation about this in general?

Thanks!

Hi, @jlmuir , I hope this is the documentation that you’re looking for:

Using UTF-8 Encoding in HDF5 Applications | The HDF Group Support Site

Yes, that is helpful! Thanks! After reading that documentation, I think the answer to my question is yes.

1 Like