필터 지우기
필터 지우기

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

조회 수: 1 (최근 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 CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by