How do I change the default encoding of MATLAB?

80 visualizaciones (últimos 30 días)
涛
el 24 de Jul. de 2023
Comentada: el 25 de Jul. de 2023
I opened the.m file that someone sent me and found that the Chinese characters inside were garbled.
I want to change the default encoding mode of matlab. The encoding mode of my matlab is GBK, and I want to change it to UTF-8.

Respuesta aceptada

Garv Agarwal
Garv Agarwal el 24 de Jul. de 2023
Hi 涛,
From my understanding, you want to change the default encoding of your MATLAB to UTF-8.
You can do this by running the following command -
feature('DefaultCharacterSet', 'UTF8')
  3 comentarios
Garv Agarwal
Garv Agarwal el 24 de Jul. de 2023
Hi 涛,
You can change the encoding to GBK in a similar way -
feature('DefaultCharacterSet', 'GBK')
涛
el 25 de Jul. de 2023
Thank you. I'll give it a try

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by