Error in rendering special character
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Gab D
el 25 de En. de 2024
Comentada: Ralf Staedtler
el 29 de En. de 2025 a las 11:15
I often have to write in french, either to define strings for folder location or for comments.
My problem is that, since updating to matlab R2023b, I get errors simbols "�" in place of special characters (é, è, à, ...) each time I boot matlab and open a script (see figure below). This only happens on matlab that I reach on a server through Remote Desktop, and not on my personal computer (which has the same version). So, I believe it's something about how matlab has been installed or a setting that I cannot find. The errors are present in both .mlx and .m files.
I have tried made sure that the version installed is indeed 64 bit with the commands:
computer; computer('arch');
and receive 'PCWIN64' and 'win64'.
Finally, I wish I could just "not" write in french and only in english to solve this problem, but it is currently not possible.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1600471/image.png)
5 comentarios
Jon Asier Bárcena Petisco
el 30 de En. de 2024
I have a similar problem. I used Matlab on my courses because the life script was visually really nice, but using English is simply not an option (I'm Spanish).
Ralf Staedtler
el 29 de En. de 2025 a las 11:15
We have the same problem with MATLAB R2023a update 7. In certain cases, MLX files with special characters may no longer be displayed in the Live Editor.
Respuesta aceptada
Pavan Sahith
el 7 de Feb. de 2024
Hello Gab,
I see that your MATLAB is not identifying French characters correctly and question marks are appearing instead, it could be due to the incorrect encoding being used. To get a better understanding of the current locale settings in MATLAB, you can use the command:
feature('locale')
Generally ,setting the encoding to 'UTF-8' should solve this issue. For that you can try the following steps:
- In MATLAB, Use "Save As" to save the file.
- The saving box that comes up will have a menu that allows you to select the format of the file to save as.
- Make sure that UTF-8 is selected and not "all .m files".
Additionally, I've found a couple of MATLAB Answers posts that might help you in setting the encoding to 'UTF-8'.
- https://in.mathworks.com/matlabcentral/answers/340903-unicode-characters-in-m-file
- https://in.mathworks.com/matlabcentral/answers/280988-how-do-i-get-my-matlab-editor-to-read-utf-8-characters-utf-8-characters-in-blank-squares-in-editors
If the issue still persists, you can contact the Technical Support.
Hope this helps!
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown 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!