Why menu of Simulink is gibberish when changing character encoding to open Simulink model made in foreign country?
조회 수: 4 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2014년 9월 12일
답변: MathWorks Support Team
2014년 9월 12일
When I tried to open Simulink model made in foreign language, an error occurred. So I tried to execute following command, I could open a model, but menu of Simulink editor is gibberish.
bdclose all; set_param(0,'CharacterEncoding','Windows-1252')
채택된 답변
MathWorks Support Team
2014년 9월 12일
There are two ways to solve this problem.
1. Change a locale of OS to the country where a model is made. To change the locale on Windows machine:
Select Start -> Control Panel -> Clock, Language, and Region -> Regional and Language.
Open Formats tab.
Select a target locale from the Format: drop-down list.
2. Delete the characters not supported in the Character Encoding.
This is a way to delete the characters from a model.
(1) Remember error message "・・・Line 123 , 45 bytes" when opening Simulink mode.
(2) Open Simulink model by MATLAB editor, and look for Line 123, 45 bytes. If you find specific character, delete it and save it as ".mdl" file.
(3) Open the model made by (2).
Do the procedure (1)-(3) until all the error are resolved.
Finally, open the model again by MATLAB editor. Find character "SavedCharacterEncoding", and change the value as following, and save it.
SavedCharacterEncoding "Shift_JIS"
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!