How can I change matlab terminal Encoding from 'GBK'to 'utf8'?

17 ビュー (過去 30 日間)
三
2023 年 3 月 25 日
回答済み: Sarthak 2023 年 4 月 18 日
feature('locale')
ans =
包含以下字段的 struct:
ctype: 'zh_CN.UTF-8'
collate: 'zh_CN.UTF-8'
time: 'zh_CN.UTF-8'
numeric: 'en_US_POSIX.UTF-8'
monetary: 'zh_CN.UTF-8'
messages: 'zh_CN.UTF-8'
encoding: 'UTF-8'
terminalEncoding: 'GBK'
jvmEncoding: 'UTF-8'
status: 'MathWorks locale management system initialized.'
warning: ''
the locale information is shown as above.
I want to change the terminalEncoding so that i can use the font "Hack NF" in the teminal window without any further operation.

回答 (1 件)

Sarthak
Sarthak 2023 年 4 月 18 日
Hi ,
As per my understanding, MATLAB doesn’t provide a direct way to change the locale settings and they are determined by your operating system. Moreover, MATLAB is now fully internationalized and uses Unicode internally.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by