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

11 ビュー (過去 30 日間)
Rodrigo De oliveira
Rodrigo De oliveira 2019 年 7 月 7 日
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

回答 (1 件)

the cyclist
the cyclist 2019 年 7 月 7 日
編集済み: the cyclist 2019 年 7 月 7 日
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 件のコメント
Yandi Gallego
Yandi Gallego 2020 年 12 月 19 日
I have the same problem and it did not work for me
Marc Raventós Tato
Marc Raventós Tato 2023 年 2 月 7 日
Same here, it did not work.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVariables についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by