How to display GB2312 encoded characters in matlab
3 views (last 30 days)
Show older comments
Hello,
I have the GB2312 codes of characters, but I would like to give a code to MATLAB and have it decode (and display) it. In python, an example of an encoded character is b'\xd2\xba'. Python can decode this and display the correpsonding simplified chinese character. How can I give matlab the encoding b'\xd2\xba' and have it display the character? So far I changed the encoding via the command slCharacterEncoding('GB2312'), and I then wrote label="\0xd2\0xba" disp(label) but I don't get anything different.
thanks
0 Comments
Answers (0)
See Also
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!