How do I change the default encoding of MATLAB?

조회 수: 102 (최근 30일)
涛
2023년 7월 24일
댓글: 2023년 7월 25일
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.

채택된 답변

Garv Agarwal
Garv Agarwal 2023년 7월 24일
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
Garv Agarwal
Garv Agarwal 2023년 7월 24일
Hi 涛,
You can change the encoding to GBK in a similar way -
feature('DefaultCharacterSet', 'GBK')
涛
2023년 7월 25일
Thank you. I'll give it a try

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by