How can MATLAB code in an M-file query the current locale's character encoding WITHOUT needing the Simulink toolbox?

3 ビュー (過去 30 日間)
How can MATLAB code in an M-file query the current locale's character encoding without needing the Simulink toolbox?
(Note that slCharacterEncoding() and get_param() are both Simulink toolbox functions.)

採用された回答

Maadhav Akula
Maadhav Akula 2020 年 9 月 1 日
Hi Michael,
You can utilize the following command to query the current locale's character encoding:
feature('locale')
Hope this helps!
  1 件のコメント
Michael Aramini
Michael Aramini 2020 年 9 月 3 日
Yes, that helps! Note that that returns a struct, with relevant fields named encoding, terminalEncoding, and jvmEncoding.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by