Special characters in m-file comments are being removed/replaced

조회 수: 4 (최근 30일)
Bill Tubbs
Bill Tubbs 2021년 6월 18일
댓글: Bill Tubbs 2021년 6월 18일
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
Bill Tubbs
Bill Tubbs 2021년 6월 18일
I haven't found anything in the Preferences menu (I'm using Mac OS X). But I did find this setting:
>> feature('DefaultCharacterSet')
ans =
'ISO-8859-1'
So is this something I can change?
Bill Tubbs
Bill Tubbs 2021년 6월 18일
The methods of chaning it prior to 2020a seem a bit complicated. Maybe I'll just wait until I upgrade to 2020a which I will do soon.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by