Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5T.set_cset

Set character dataset for string data type

Syntax

H5T.set_cset(type_id, cset)

Description

H5T.set_cset(type_id, cset) sets the character encoding used to create strings. The only valid type is H5T_CSET_ASCII.

Examples

type_id = H5T.copy('H5T_C_S1');
H5T.set_size(type_id,10);
encoding = H5ML.get_constant_value('H5T_CSET_ASCII');
H5T.set_cset(type_id,encoding);

See Also

Was this topic helpful?