MATLAB: How to print Chinese characters using disp

chineseMATLAB

I have a file that contains u8 Chinese characters. When I open the file with some editor, say Notepad, I can see the Chinese characters no problem. Ok, now I read the file using textread. Then I print a line out of the data I just read and everyting is readable except the Chinese characters. Somehow 8 bit Chinese gets mangled by textread or if it survives the read, it gets mangled by the disp command. How should I read the data? Using a special formatting string? And printing it, using some special output format string??
Thanks.

Best Answer

fread the file *uint8pprecision, instead of fileread. Use native2unicode UTF8 to process the byte sequence into characters. Or is it unicode2native, I keep getting the two confused.
Possibly you will need to GB2312 instead of UTF8