How to display Chinese character in edit text box in Matlab GUI?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Anandakumar Selvaraj
il 18 Feb 2014
Commentato: Avishai
il 24 Feb 2015
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 Commenti
Risposta accettata
Walter Roberson
il 18 Feb 2014
Modificato: Walter Roberson
il 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');
Più risposte (1)
Anandakumar Selvaraj
il 27 Feb 2014
2 Commenti
Lino Smaldo
il 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
Vedere anche
Categorie
Scopri di più su Text Data Preparation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!