Change MATLAB character set encoding
slCharacterEncoding(
changes
the MATLAB® character set encoding to the one you specify. Use this syntax to
change the current MATLAB character set encoding to be compatible with the character encoding of
a model that you want to open. Close all open models or libraries before changing
the MATLAB character set encoding except when changing from US-ASCII to another
encoding.encoding
)
Use this syntax to specify these encodings:
'US-ASCII'
'Windows-1252'
'ISO-8859-1'
'Shift_JIS'
'UTF-8'
If you want to use a different character encoding, 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.
returns
the current MATLAB character set encoding.current
= slCharacterEncoding()