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

3 vues (au cours des 30 derniers jours)
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.)

Réponse acceptée

Maadhav Akula
Maadhav Akula le 1 Sep 2020
Hi Michael,
You can utilize the following command to query the current locale's character encoding:
feature('locale')
Hope this helps!
  1 commentaire
Michael Aramini
Michael Aramini le 3 Sep 2020
Yes, that helps! Note that that returns a struct, with relevant fields named encoding, terminalEncoding, and jvmEncoding.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by