windows-1251

21 ビュー (過去 30 日間)
Natalia
Natalia 2011 年 3 月 4 日
Good afternoon! When I try to make debugging as here http://www.mathworks.com/support/tech-notes/1800/1819.html when I try to open the .mdl (sfundebug), matlab refers on cod windows-1251... Somebody had such error? Probably Is the eror "Matlab has encountered an internal problem and needs to close" arise because of it?

採用された回答

MarkB
MarkB 2011 年 3 月 4 日
I believe that this might relate to the character-encoding settings of the operating system. Basically the operating system has a default character-encoding setting, and Simulink reads this setting and uses it when creating new model files. However, this setting changes with different operating systems (e.g. Windows XP vs. Windows 7). If you want to use a different character-encoding than the operating system default, you should use the "slCharacterEncoding" command at the MATLAB prompt before opening any models.
If you try to open a model with a different character encoding, the error message should indicate what you should be using instead.
  1 件のコメント
Jan
Jan 2011 年 3 月 4 日
Then I assume an error message, but not a hard crash.

サインインしてコメントする。

その他の回答 (2 件)

Jan
Jan 2011 年 3 月 4 日
The question is not getting clear to me. What does "Matlab refers on cod windows-1251" mean? Windows1251 is a code table for using Cyrillic characters. Why is referring to this code page an error?
The error "Matlab ... needs to be closed" is more likely caused by a crashing Mex function. I cannot see a connection between these two facts.

Natalia
Natalia 2011 年 3 月 5 日
Thank you, I used following commands and debugging have begun
>> slCharacterEncoding('windows-1252') >> feature('MultibyteCharSetChecking',0)

カテゴリ

Help Center および File ExchangeSimulink Environment Customization についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by