MATLAB gui中的法语口音 [英] French accents in MATLAB gui

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

问题描述

我正在使用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');

谢谢.

推荐答案

我在

I found the answer on this stackoverflow page. Basically, I just have to set MATLABencoding to UTF-8 before creating the GUI. The command is simply:

feature('DefaultCharacterSet','UTF-8');

就是这样!

这篇关于MATLAB gui中的法语口音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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