Problem with displaying hebrew when moving files from windows to linux

2 ビュー (過去 30 日間)
Dvir Haberman
Dvir Haberman 2018 年 8 月 6 日
回答済み: Ali Awad 2019 年 3 月 11 日
Hello,
I'm using matlab 2018R (both machines). I moved my MATLAB code and fig files from a windows environment to a linux environment and when I tried to open the files the hebrew characters became squares.
In the linux environment, after using fonts such as David CLM I can type and open locally saved files with hebrew characters without a problem. As i said, the problem is only when I try and open a file saved in a windows environment.
In linux:
unicode2native(native2unicode('משהו בעברית'))
fails because
slCharacterSet()
returns 'Windows-1252'
when I do
slCharacterSet('UTF-8')
unicode2native(native2unicode('משהו בעברית'))
it returns משהו בעברית
So I tried also applying it to the windows machine using the feature command (I don't have Simulink in the windows enviroinment):
feature('DefaultCharacterSet','UTF-8')
and then
feature('DefaultCharacterSet')
returns UTF-8, so I had high hopes for that but then it also failed....):
I guess I should somehow change the way matlab saves the file so it would be UTF-8 but I don't know how.
Please help!
Thanks!

回答 (1 件)

Ali Awad
Ali Awad 2019 年 3 月 11 日
try adding the unicode for Hebrew to your system from language settings as in the attached picture...

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by