How to display Chinese character in edit text box in Matlab GUI?
7 次查看(过去 30 天)
显示 更早的评论
i Have to display chinese characters from db were i am able to display it in matlab console
But in gui only junk characters is displayed i use
set(handles.edit1, 'String', mandarinTxtOut);%for display text in edittext
0 个评论
采纳的回答
Walter Roberson
2014-2-18
编辑:Walter Roberson
2014-2-18
Unfortunately it cannot be done in a uicontrol('Style','edit') See http://www.mathworks.co.uk/matlabcentral/answers/114579-string-with-greek-font-and-suscrit-in-uitable
If you use style push you can do it. For example,
foo = uicontrol('Style','push', 'String','<HTML>AB到C');
更多回答(1 个)
Anandakumar Selvaraj
2014-2-27
2 个评论
Lino Smaldo
2015-2-22
I tried to use the command
feature('DefaultCharacterSet', 'UTF8') %# for Chinese Character support
but it doesn't work, why? please help me
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!