I see now there is a recent answer saying as of R2020a, the MATLAB Editor will default to saving new files using UTF-8. So I guess it is not possible before this.
Special characters in m-file comments are being removed/replaced
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I've noticed that special charactes such as 'Γ' and '│' that I sometimes use in comments in m-files are being removed:
% Compute Pr(Γ(k)│Y(k))
After saving, closing and re-opening the file it becomes:
% Compute Pr?(?(k)?Y(k))
According to my file system, the saved file is
charset=us-ascii
Is there any support for other character encodings (e.g. UTF-8) in the code editor?
4 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!