Borrar filtros
Borrar filtros

How to display Chinese character in edit text box in Matlab GUI?

2 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Feb. de 2014
Editada: Walter Roberson el 18 de Feb. de 2014
If you use style push you can do it. For example,
foo = uicontrol('Style','push', 'String','<HTML>AB&#21040;C');
  1 comentario
Anandakumar Selvaraj
Anandakumar Selvaraj el 18 de Feb. de 2014
i tried your code your code sir i am able to get out put with little modification but a seperate edit text field is created and display's at the bottom .
h = uicontrol('Style','edit');
s = sprintf(mandarinTxtOut');
set(h,'String',s)
insted can it be used to display the value on the the edit text box i placed in the figure like the set method i used which displayed the english value
set(handles.edit1, 'String', mandarinTxtOut);

Iniciar sesión para comentar.

Más respuestas (1)

Anandakumar Selvaraj
Anandakumar Selvaraj el 27 de Feb. de 2014
finally I found The Answer by my self its just a matter of Adding The DefaultCharacterSet to utf 8 i am able to display all chinese charactes this goes for all langauage just add your supportable characterset like this in your code
feature('DefaultCharacterSet', 'UTF8') %# for Chinese Character support
  2 comentarios
Lino Smaldo
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
Avishai
Avishai el 24 de Feb. de 2015
Me either. What should I do?

Iniciar sesión para comentar.

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!

Translated by