Borrar filtros
Borrar filtros

How to display GB2312 encoded characters in matlab

3 visualizaciones (últimos 30 días)
dwight nwaigwe
dwight nwaigwe el 29 de Feb. de 2020
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

Respuestas (0)

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by