Running Matlab, accents are replaced by question marks in the outputs

9 visualizaciones (últimos 30 días)
Hello !
I already mentioned my tiny problem but I think I did a bad manipulation, so I didn't have a complete answer. So I start again, simplifying the example that illustrates my problem.
In French, some words have accents. After running program with Matlab 2019, accents are replaced by question marks in the outputs. How can I solve this issue ?
As an example and to better understand the issue, here some lines code of ones of my program written with Matlab 2009a
dimec=get(0,'ScreenSize');
uicontrol(gcf,'style','push','pos',[0.114*dimec(3) 0.4*dimec(4) 0.12*dimec(3) 0.06*dimec(4)],'String','Signaux déterministes',...
'FontSize',19,'FontWeight','bold',...
'callback',['disp(''Hello'')'],'backgroundcolor',[0.8000 0.4000 0.8000]);
As you see, there is an ” é ” in the lines code for the push button name "Signaux déterministes". But the ” é ” is replaced by a question mark after running the script as you can see in the screenshot below.
Thanks for any help you can offer.
Rodrigo

Respuestas (1)

the cyclist
the cyclist el 7 de Jul. de 2019
Editada: the cyclist el 7 de Jul. de 2019
Your code renders correctly for me in R2019a, on a mac running mojave.
There are some ideas in response to this question that could be helpful for you. In particular, I think looking at the output of
feature('DefaultCharacterSet')
and setting that value to something else, seems like the most promising. FYI, my value of that is 'ISO-8859-1'.
  3 comentarios
Yandi Gallego
Yandi Gallego el 19 de Dic. de 2020
I have the same problem and it did not work for me

Iniciar sesión para comentar.

Categorías

Más información sobre Variables en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by