matlab encoding如何从GBK转换成windows-1252
8 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Swaraj
on 9 Jan 2024
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!