1、win10系统编码已经改为utf8
2、D:\Program Files\Polyspace\R2019b\bin\lcdata.xml(lcdata_utf8.xml复制过来的,2017版后lcdata是空配置)以作下面改动:
删除lcdata.xml中的:
<encoding name=”GBK”>
< encoding_alias name=”936”>
</encoding>
并将:
<encoding name=”UTF-8”>
<encoding_alias name=”utf8”/>
</encoding>
改为:
<encoding name=”UTF-8”>
<encoding_alias name=”utf8”/>
<encoding_alias name=”GBK”/>
</encoding>
重启后:
>> feature('locale')
ans =
包含以下字段的 struct:
ctype: 'zh_CN.GBK'
collate: 'zh_CN.GBK'
time: 'zh_CN.GBK'
numeric: 'en_US_POSIX.GBK'
monetary: 'zh_CN.GBK'
messages: 'zh_CN.GBK'
encoding: 'GBK'
terminalEncoding: 'GBK'
jvmEncoding: 'UTF-8'
status: 'MathWorks locale management system initialized.'
warning: ''
>>
还是GBK编码。各位大佬有没有解决方案?谢啦
2、D:\Program Files\Polyspace\R2019b\bin\lcdata.xml(lcdata_utf8.xml复制过来的,2017版后lcdata是空配置)以作下面改动:
删除lcdata.xml中的:
<encoding name=”GBK”>
< encoding_alias name=”936”>
</encoding>
并将:
<encoding name=”UTF-8”>
<encoding_alias name=”utf8”/>
</encoding>
改为:
<encoding name=”UTF-8”>
<encoding_alias name=”utf8”/>
<encoding_alias name=”GBK”/>
</encoding>
重启后:
>> feature('locale')
ans =
包含以下字段的 struct:
ctype: 'zh_CN.GBK'
collate: 'zh_CN.GBK'
time: 'zh_CN.GBK'
numeric: 'en_US_POSIX.GBK'
monetary: 'zh_CN.GBK'
messages: 'zh_CN.GBK'
encoding: 'GBK'
terminalEncoding: 'GBK'
jvmEncoding: 'UTF-8'
status: 'MathWorks locale management system initialized.'
warning: ''
>>
还是GBK编码。各位大佬有没有解决方案?谢啦