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 Center および File ExchangeGet 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