Running Matlab, accents are replaced by question marks in the outputs
1 次查看(过去 30 天)
显示 更早的评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227838/image.png)
Thanks for any help you can offer.
Rodrigo
0 个评论
回答(1 个)
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!