本文介绍了MATLAB源文件中的Unicode字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我想在字符。 wikipedia.org/wiki/MATLAB\"> MATLAB 源文件。当我写文本时这似乎工作;然而,如果我关闭文件并重新加载它,异常字符已经变成问号。我想MATLAB将文件保存为ASCII。

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" characters have been turned into question marks. I guess MATLAB is saving the file as ASCII.

有没有办法告诉MATLAB使用

Is there any way to tell MATLAB to use UTF-8 instead?

推荐答案

显示如何设置编码为不同的平台。使用

How the MATLAB Process Uses Locale Settings shows how to set the encoding for different platforms. Use

feature('DefaultCharacterSet')

您可以阅读更多关于这个未记录的功能 。另见用于其他选项。

You can read more about this undocumented function here. See also this Matlab Central thread for other options.

这篇关于MATLAB源文件中的Unicode字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 00:29