matlab encoding如何​从GBK转换成win​dows-1252

6 次查看(过去 30 天)
youli
youli 2024-1-4
回答: Swaraj 2024-1-9
The character encoding windows-1252 used by model 'FehleraufschaltungLib' differs from the MATLAB session character encoding GBK. To check for
problems which might corrupt the model use the "Simulink Model File Integrity" checks in the Model Advisor.

回答(1 个)

Swaraj
Swaraj 2024-1-9
Hi youli,
I am assuming that "FehleraufschaltungLib" is a MDL file as SLX files do not warn because they can store characters from any encoding.
If you open a MDL file created in a release prior to R2021b in a MATLAB session that uses different encoding, you receive a warning. For example, suppose you create a MDL file in a MATLAB session configured for Shift_JIS and open it in a session configured for windows-1252. The warning message displays the encoding of the current session and the encoding used to create the model.
Starting in R2021b, MDL files can store characters from any encoding. To open a MDL file created in a release prior to R2021b in a MATLAB session that uses different encoding, in the environment with the encoding that the MDL file is configured for, resave the file in the R2021b release or later, or resave the MDL file as an SLX file.
For more details, follow the below documentation.

类别

Help CenterFile Exchange 中查找有关 编程式模型编辑 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!