问题描述
我正在使用gui开发MATLAB程序.我想用法语显示文本标签和按钮,但是不起作用.例如,代码中的'Paramètres'一词在gui上变为Paramètres.
I'm working on a MATLAB program with a gui. I want to have text labels and buttons in french, but it doesn't work. For example, the word 'Paramètres' in the code becomes Paramètres on the gui.
我检查了文件编码,它是utf-8.我该怎么做才能解决这个问题?
I checked the file encoding and it's utf-8. What can I do to fix that?
这是我在代码中使用的一个命令的简单示例:tab2 = uitab('v0', hTabGroup, 'title','Paramètres des canaux');
Here's a simple example of one command that I used in the code:tab2 = uitab('v0', hTabGroup, 'title','Paramètres des canaux');
谢谢.
推荐答案
我在.基本上,我只需要在创建GUI之前将MATLAB
encoding设置为UTF-8.该命令很简单:
I found the answer on this stackoverflow page. Basically, I just have to set MATLAB
encoding to UTF-8 before creating the GUI. The command is simply:
feature('DefaultCharacterSet','UTF-8');
就是这样!
这篇关于MATLAB gui中的法语口音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!