I see that there is a possibility, to check which Char-Set a dataset in HDF5 has (using the H5T.get_cset function). But how do I define that a dataset should use the UTF8-CharSet ? The set_cset() function is not implemented ?? Do I have to "manually" P/Invoke that function, or is there another way in c#/.NET to do this ?
taking this one step further, I tried to create Groups / Attributes with UTF8-Strings (still using c#/.NET). While creating works, when enumerating through Groups that have UTF8 names (using H5G.iterate()), in the callback function I always get ??? as objectName. It seems to me as if working with UTF8 Strings through the .NET wrapper is not really working/implemented correctly. Is this right ? And are there plans on support for UTF8 (or any other Unicode Strings) in the .NET wrapper ?
The (unmaintained) .NET wrapper does not support UTF-8 encoded strings.
There are no plans to resurrect or change it in any shape or form.
However, there are plans for a complete PInvoke-based low-level .NET API.
Stay tuned.
Best, G.
···
-----Original Message-----
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Detlef Sanchen
Sent: Thursday, December 17, 2015 6:29 AM
To: 'hdf-forum@lists.hdfgroup.org'
Subject: Re: [Hdf-forum] Writing UTF8 strings to a HDF5 dataset using .NET
Hi there,
taking this one step further, I tried to create Groups / Attributes with UTF8-Strings (still using c#/.NET). While creating works, when enumerating through Groups that have UTF8 names (using H5G.iterate()), in the callback function I always get ??? as objectName. It seems to me as if working with UTF8 Strings through the .NET wrapper is not really working/implemented correctly. Is this right ? And are there plans on support for UTF8 (or any other Unicode Strings) in the .NET wrapper ?