Documentation Center

  • Trial Software
  • Product Updates
我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

H5T.get_cset

Character set of string data type

Syntax

cset = H5T.get_cset(type_id)

Description

cset = H5T.get_cset(type_id) returns the character set type of the data type specified by type_id.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/string');
type_id = H5D.get_type(dset_id);
cset = H5T.get_cset(type_id);
switch(cset)
  case H5ML.get_constant_value('H5T_CSET_ASCII')
      fprintf('ASCII\n');
  case H5ML.get_constant_value('H5T_CSET_UTF8')
      fprintf('UTF-8\n');
end

See Also

Was this topic helpful?