MATLAB Answers

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

3 views (last 30 days)
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.)

  0 Comments

Sign in to comment.

Accepted Answer

Maadhav Akula
Maadhav Akula on 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 Comment

Michael Aramini
Michael Aramini on 3 Sep 2020
Yes, that helps! Note that that returns a struct, with relevant fields named encoding, terminalEncoding, and jvmEncoding.

Sign in to comment.

More Answers (0)

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!