Am 26.04.2011 um 12:52 schrieb Jens Thoms Toerring:
It seems that my code create 2 bytes for the ä, ö, ü, ß and Matlab
1 byte.
Can I switch the encoding in the HDF5 file or can I use unicode or
anything
else?
Don't know if you can get MatLab to use UTF-8, concerning the
HDF5 file the question is how it is written. The program it's
written by seems to use UTF-8. Can you change that? If this
is a test program with the 'äöüß' hard-coded into it you just
may have to get your editor to use ISO-8859-1. Writing to the
HDF5 file isn't the point, it just contains what you told it
to, the problem is passing in the values you want it to con-
tain.
I've tested the code with ISO-8859-1 (change my source code, because
the chars are hardcoded), than the encoding is correct (C++ & Matlab).
But my problem I read XML data with utf-8 encoding (some cyrillic
chars, etc). I would like to write them to the HDF and read them into
Matlab. Do you have any idea with a correct encoding?
If I read / write the char data in my code, I can set the correct
encoding representation, but is there an option for saving the
encoding into the file, because only the char code isn't unique. I can
set utf-8, utf-8, ASCII, etc
Thx
Phil
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org