MATLAB源文件中的Unicode字符 [英] Unicode characters in MATLAB source files

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

问题描述

我想在 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使用 UTF-8

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

推荐答案

MATLAB程序如何使用区域设置显示如何设置编码为不同的平台。使用

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

feature('DefaultCharacterSet')

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

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆