Writing UTF8 strings to a HDF5 dataset using .NET

Hi there,

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 ?

Thanks for any suggestions,
Detlef

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 ?

Best regards,
Detlef

···

---
Detlef Sanchen
Senior Software Engineer

WITec GmbH
Lise-Meitner-Str. 6, 89081 Ulm, Germany
Phone: +49 (0)731 140 70-0, Fax: +49 (0)731 140 70-200
Email: Detlef.Sanchen@WITec.de, web: www.WITec.de

Join us on Facebook: www.facebook.com/witec.de

WITec Wissenschaftliche Instrumente und Technologie GmbH; Geschäftsführer: Dr.Olaf Hollricher, Dr.Joachim Koenen, Dr.Klaus Weishaupt; Amtsgericht Ulm HRB 3507

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 ?

Best regards,
Detlef

---
Detlef Sanchen
Senior Software Engineer

WITec GmbH
Lise-Meitner-Str. 6, 89081 Ulm, Germany
Phone: +49 (0)731 140 70-0, Fax: +49 (0)731 140 70-200
Email: Detlef.Sanchen@WITec.de, web: www.WITec.de

Join us on Facebook: Redirecting...

WITec Wissenschaftliche Instrumente und Technologie GmbH; Geschäftsführer: Dr.Olaf Hollricher, Dr.Joachim Koenen, Dr.Klaus Weishaupt; Amtsgericht Ulm HRB 3507

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5