Clear Filters
Clear Filters

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

17 views (last 30 days)
youli
youli on 4 Jan 2024
Answered: Swaraj on 9 Jan 2024
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.

Answers (1)

Swaraj
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.

Categories

Find more on 编程 in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!