How do I change the default encoding of MATLAB?
98 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Akzeptierte Antwort
Garv Agarwal
am 24 Jul. 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 Kommentare
Garv Agarwal
am 24 Jul. 2023
Hi 涛,
You can change the encoding to GBK in a similar way -
feature('DefaultCharacterSet', 'GBK')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!