Unicode characters in MATLAB source files

后端 未结 5 1538
执笔经年
执笔经年 2020-11-30 05:55

I\'d like to use Unicode characters in comments in a MATLAB source file. This seems to work when I write the text; however, if I close the file and reload it, \"unusual\" ch

5条回答
  •  囚心锁ツ
    2020-11-30 06:30

    According to http://www.mathworks.de/matlabcentral/newsreader/view_thread/238995

    feature('DefaultCharacterSet', 'UTF8')
    

    will change the encoding to UTF-8. You can put the line above in your startup.m file.

提交回复
热议问题