Change MATLAB character set encoding
currentCharacterEncoding = slCharacterEncoding()
currentCharacterEncoding = slCharacterEncoding() returns
the current MATLAB character set encoding.
the MATLAB character set encoding to the specified
You should only specify these values:
If you want to use a different character encoding, you need to start MATLAB with the appropriate locale settings for your operating system. Consult your operating system manual to change the locale setting. Simulink® can support any character encoding that uses single-byte or double-byte characters.
If you open a model that uses a particular character set encoding
in a MATLAB session that uses a different encoding, a warning
appears. For example, suppose that you create a model in a MATLAB session
Shift_JIS and open it in a session
US_ASCII. The warning message shows
the encoding of the current session and the encoding used to create
the model. If you encounter any problems with corrupted characters,
for example when using MATLAB files associated with the model,
then try using the
to change the character encoding
Close all open models.
slCharacterEncoding to change
the character encoding of the current MATLAB session to match
the model character encoding.
Reopen the model.
You must close all open models or libraries before changing
the MATLAB character set encoding except when changing from