Greek character in script turned to a square or a question mark - any ideas why?
24 ビュー (過去 30 日間)
表示 古いコメント
I copied a script from an older computer with Matlab 2012b to a new computer with Matlab 2017a and when I opened it, a Greek character 'μ' was encoded as a little square (maybe missing font). After Installing the Greek language option in MS Windows and typing in its place the letter μ, running the script reported an error (wrong matrix dimensions). So I reloaded the saved script and the character μ had now been replaced by a questionmark. Does anyone know what is going on? I have not witnessed this before. The faulty character encoding may have nothing to do with Matlab itself.
0 件のコメント
回答 (3 件)
maiaL
2020 年 8 月 3 日
You can refer to this if you want to print greek and other special characters. But I don't think you can have these characters within the code itself.
0 件のコメント
Walter Roberson
2020 年 8 月 4 日
編集済み: Walter Roberson
2020 年 8 月 4 日
R2020a is the first release that handles UTF8 encoding in a way that is natural to the user.
In releases before that, you had to use hacks and obscure calls to tell MATLAB that you were going to use non-ASCII. And on your new computer, you have not used those obscure settings.
My recommendation would be to upgrade to R2020a.
4 件のコメント
参考
カテゴリ
Find more on Labels and Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!