MATLAB: Am I unable to open a Simulink model that includes Chinese characters on the Windows computer in spite of changing the locale to Chinese (PRC)

simulinkvoci18n

I have received a model that was created on a Chinese computer and it includes Chinese characters. In order to be able to open this model on my computer, I went to
"Control panel"->"Regional and Language Options"->"Regional Options" and
"Control panel"->"Regional and Language Options"->"Advanced"
and changed the locale to 'Chinese(PRC)'.
However, when I try to open the model now, I receive the following error message.
Error using ==> at 157
-->Unable to load model file 'C:\users\rganesan\example.mdl' due to the presence of characters that are not supported in the current character encoding setting 'GBK'. Either:
1)run ''bdclose all;set_param(0.'Characterencoding',Enc)'' where Enc is one of windows-1252,ISO-8859-1,then load the model, or
2) remove the unsupported characters. The first such character occurs on line 524, byte offset 21.
-->Error loading model 'example'

Best Answer

This error message is expected because MATLAB does not support 'GBK' character encoding.
Execute the following steps to resolve the issue.
1. Ensure that you restart the computer after you have changed the locale to 'Chinese(PRC)'. This is a very important and required step for the Chinese settings to be applied.
2. Verify the 'Characterencoding' property that is currently being used by executing the following command at the MATLAB Command Prompt.
>>get_param(0,'Characterencoding')
You should receive the following output.
>>ans = GBK
3. To open this model, execute the following command at the MATLAB Command Prompt.
>>bdclose all;set_param(0,'CharacterEncoding','windows-1252');
'Windows-1252' is a supported 'Characterencoding' property by MATLAB.
You should now be able to open your model. For more information on supported 'Characterencoding' properties, execute the following command at the MATLAB Command Prompt.
>>doc slCharacterEncoding