How to display Chinese character in edit text box in Matlab GUI?
7 views (last 30 days)
Show older comments
Anandakumar Selvaraj
on 18 Feb 2014
Commented: Avishai
on 24 Feb 2015
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 Comments
Accepted Answer
Walter Roberson
on 18 Feb 2014
Edited: Walter Roberson
on 18 Feb 2014
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');
More Answers (1)
Anandakumar Selvaraj
on 27 Feb 2014
2 Comments
Lino Smaldo
on 22 Feb 2015
I tried to use the command
feature('DefaultCharacterSet', 'UTF8') %# for Chinese Character support
but it doesn't work, why? please help me
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!