| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
currentCharacterEncoding = slCharacterEncoding()
slCharacterEncoding(encoding)
This command allows you to change the current MATLAB character set encoding to be compatible with the character encoding of a model that you want to open.
currentCharacterEncoding = slCharacterEncoding() returns the current MATLAB character set encoding.
slCharacterEncoding(encoding) changes the MATLAB character set encoding to the specified encoding. You should only specify these values:
'US-ASCII'
'Windows-1252'
'ISO-8859-1'
'Shift_JIS'
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.
Note You must close all open models or libraries before changing the MATLAB character set encoding except when changing from 'US-ASCII' to another encoding. |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |