How to display Chinese character in edit text box in Matlab GUI?
5 次查看(过去 30 天)
显示 更早的评论
i Have to display chinese characters from db were i am able to display it in matlab console
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156900/image.png)
But in gui only junk characters is displayed i use
set(handles.edit1, 'String', mandarinTxtOut);%for display text in edittext
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156904/image.png)
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 中查找有关 Text Data Preparation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!