How to display Chinese character in edit text box in Matlab GUI?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anandakumar Selvaraj
am 18 Feb. 2014
Kommentiert: Avishai
am 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 18 Feb. 2014
Bearbeitet: Walter Roberson
am 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');
1 Kommentar
Weitere Antworten (1)
Anandakumar Selvaraj
am 27 Feb. 2014
2 Kommentare
Lino Smaldo
am 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
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!