![]() |
MATLAB源文件中的Unicode字符
我想在[URL="http://en.wikipedia.org/wiki/MATLAB"]MATLAB[/URL]源文件的注释中使用[URL="http://en.wikipedia.org/wiki/Unicode"]Unicode[/URL]字符。当我写文字时,这似乎可行;但是,如果我关闭文件并重新加载它,“异常”字符将变成问号。我猜MATLAB正在将文件另存为ASCII。
有什么办法告诉MATLAB使用[URL="http://en.wikipedia.org/wiki/UTF-8"]UTF-8[/URL]代替吗? [B]回答:[/B] [URL="http://www.mathworks.com/help/matlab/matlab_env/how-the-matlab-process-uses-locale-settings.html"]MATLAB流程如何使用语言环境设置[/URL]显示了如何为不同平台设置编码。使用 feature('DefaultCharacterSet') 您可以[URL="http://undocumentedmatlab.com/blog/undocumented-feature-function"]在此处[/URL]阅读有关此未记录功能的更多信息。另请参[URL="http://www.mathworks.com/matlabcentral/answers/15423-how-do-i-determine-my-matlab-default-character-encoding-scheme"]见此Matlab中央线程[/URL] 。 [url=https://stackoverflow.com/questions/4984532]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 04:54。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.