Clear Filters
Clear Filters

Greek characters in m-file for comments and strings

9 views (last 30 days)
Hi everyone,
I used to run Matlab 2016b on a windows 10 x64 machine, English Language. I cannot recall system locale setting on that machine though.
Out of the box, if I typed any greek characters in the comments of an m-file and save it, the next time I would open it, the characters would not be recognised properly and would appear with "chinese" effect (I apologise to our Chinese friends for the improper use of the word chinese). However I remember I had found a solution (by searching online), which was quite simple and easy to follow and it worked. Too bad that I didn't right it down somewhere.
Now I have a fresh windows 10 installation and Matlab 2017, but the matlab editor cannot read the greek characters in my m.files properly. If open the files in notepad though, the greek characters are there.
Could you help me out please? It is very important for me to retrieve those scripts.

Accepted Answer

Konstantinos Tompoulidis
Konstantinos Tompoulidis on 27 Apr 2018
Edited: Konstantinos Tompoulidis on 27 Apr 2018
I solved my problem. Here is the solution:
Go to Control Panel -> Clock, Language and Region -> Region and change the settings for all three tabs (Formats, Location, Administrative) to "Greek"
.

More Answers (0)

Categories

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!