How to display Chinese character in edit text box in Matlab GUI?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Anandakumar Selvaraj
el 18 de Feb. de 2014
Comentada: Avishai
el 24 de Feb. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 18 de Feb. de 2014
Editada: Walter Roberson
el 18 de Feb. de 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 comentario
Más respuestas (1)
Anandakumar Selvaraj
el 27 de Feb. de 2014
2 comentarios
Lino Smaldo
el 22 de Feb. de 2015
I tried to use the command
feature('DefaultCharacterSet', 'UTF8') %# for Chinese Character support
but it doesn't work, why? please help me
Ver también
Categorías
Más información sobre Text Data Preparation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!