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

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.)

 Risposta accettata

Hi Michael,
You can utilize the following command to query the current locale's character encoding:
feature('locale')
Hope this helps!

1 Commento

Yes, that helps! Note that that returns a struct, with relevant fields named encoding, terminalEncoding, and jvmEncoding.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Simulink in Centro assistenza e File Exchange

Prodotti

Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by