Using Matlab compiler, accents are replaced by question marks.
Afficher commentaires plus anciens
Hi,
I have a tiny problem: in French, some words have accents. After compilation with Matlab compiler, accents are replaced by question marks. How can I solve this problem? Thank you for any help you can offer.
Rodrigo
3 commentaires
GK
le 4 Juil 2019
Can you show us some example ?
If you can release the sample code of your program it will be useful to understand the problem.
Thanks!
Rodrigo De oliveira
le 5 Juil 2019
Déplacé(e) : Stephen23
le 6 Fév 2023
Marc Raventós Tato
le 6 Fév 2023
Déplacé(e) : Stephen23
le 6 Fév 2023
Did you manage to solve this? I am facing the exact same problem now.
Réponses (1)
try using the ascii code for the letters that you want to be displayed, e.g.
disp(strcat('d',233,'terministes'))
3 commentaires
Marc Raventós Tato
le 7 Fév 2023
Thanks, but the point is I used to compile this in previous versions of matlab (2012 vs 2022) and it accepted the french text without calling the ascii symbol.
Constantino Carlos Reyes-Aldasoro
le 7 Fév 2023
I had similar problems changing from Mac to PC and between versions. But since using ASCII, even if it is a slight complication, I have not had those problems.
Walter Roberson
le 7 Fév 2023
In r2012 you got lucky that the characters you were interested in happened to be representable in 8 bits in your default character set. In current versions, utf-8 encoding is used so multibyte encoding is used. Apparently the compiler is not expecting utf-8 encoding.
Catégories
En savoir plus sur Assembly dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
