Why is it that special characters are not being recognized correctly in my standalone app?
    6 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
"Why is it that special characters are not being recognized correctly in my script? 
For instance, 
msgbox("Time μs");
when I run the script file with this command, a message box displays "Time μs" as expected. 
However, when I create a standalone EXE of the script created using deploytool in Matlab 2023a, the message box displays 'Time □s' instead. (symbol μ became empty square)
This was not an issue in Matlab 2019, and it's causing my code to fail. I use column names like "Time μs" to identify columns in a table.
0 commentaires
Réponses (1)
  Bruno Luong
      
      
 le 14 Sep 2023
        
      Modifié(e) : Bruno Luong
      
      
 le 14 Sep 2023
  
      It looks like it related to mfile encoding. Through the compiler; the mfiles are encrypted and decrypted and run. May be one the the chain element do not consider correctly the enconding. The most workaround is to replace in the code 'µ' by char(181) or string(char(181)). 
3 commentaires
  Bruno Luong
      
      
 le 15 Sep 2023
				There is a default behavior change of source file encoding in R2020a IIRC (default UTF8). You may be affected by this specific change.
Voir également
Catégories
				En savoir plus sur Language Support dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!