How to display chinese character in Matlab 2012B editor and command line?

2 次查看(过去 30 天)
Hi, I face an issue maybe lots of people have been troubled. My system is win 8.1 English. I have lot of codes which have Chinese commend and display outputs.
I have try to do something, 1. change my "Regional and Language Options" to "Chinese (PRC)" 2. change fonts set to 'simsum'
Still display junk like
% m_pstResultDataStruct: ÓÃÓÚÄÚ²¿¼ÆËãµÄÅÓ´óµÄÊý¾Ý½á¹û
Please help!
  3 个评论
Andreas Goser
Andreas Goser 2016-4-27
You can't be sure it is the same issue, as the other user did not mention the release used ;-) But seriously, this is a 2y old question and the user didn't bother to respond, so please don't expect timely help. Please call into technical support.

请先登录,再进行评论。

回答(1 个)

Gerald
Gerald 2016-9-28
"Those Chinese comments in a M-file became strange symbols after re-open in Matlab Editor (even anyelse editors). The problem lies in the setting of "Standards and formats" setting of "Regional and Language Options". Set it to "Chinese (PRC)" and then the problem solved. Thus, it seems that Matlab read location information from this section and determine the lunguage with which it displays and stores contents."

类别

Help CenterFile Exchange 中查找有关 Just for fun 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by